下面为合并普通单元格开启像素滚动代码(代码附件上传不成功, 还是之前发你们的demo代码), 加了 spread.options.scrollByPixel = true; 这句代码
- spread.options.scrollByPixel = true;
- //apply auto merge
- var range = new GC.Spread.Sheets.Range(-1, -1, -1, -1);
- // sheet.autoMerge(range, GC.Spread.Sheets.AutoMerge.AutoMergeDirection.row, GC.Spread.Sheets.AutoMerge.AutoMergeMode.free, GC.Spread.Sheets.SheetArea.colHeader);
- // sheet.autoMerge(range, GC.Spread.Sheets.AutoMerge.AutoMergeDirection.column, GC.Spread.Sheets.AutoMerge.AutoMergeMode.free, GC.Spread.Sheets.SheetArea.rowHeader);
- sheet.autoMerge(range, GC.Spread.Sheets.AutoMerge.AutoMergeDirection.column, GC.Spread.Sheets.AutoMerge.AutoMergeMode.restricted);
- spread.resumePaint();
复制代码
|