Browse Source

fix(rowtitle): bug

fix rowtitle resize bug
master
mengshukeji 5 years ago
parent
commit
8faeffee08
  1. 6
      src/global/draw.js
  2. 2
      src/index.html

6
src/global/draw.js

@ -212,7 +212,9 @@ function luckysheetDrawgridRowTitle(scrollHeight, drawHeight, offsetTop) {
//清除canvas左上角区域 防止列标题栏序列号溢出显示
// luckysheetTableContent.clearRect(0, 0, Store.rowHeaderWidth , Store.columnHeaderHeight );
luckysheetTableContent.restore();
// Must be restored twice, otherwise it will be enlarged under window.devicePixelRatio = 1.5
luckysheetTableContent.restore();
luckysheetTableContent.restore();
}
@ -408,6 +410,8 @@ function luckysheetDrawgridColumnTitle(scrollWidth, drawWidth, offsetLeft) {
//清除canvas左上角区域 防止列标题栏序列号溢出显示
// luckysheetTableContent.clearRect(0, 0, Store.rowHeaderWidth , Store.columnHeaderHeight );
// Must be restored twice, otherwise it will be enlarged under window.devicePixelRatio = 1.5
luckysheetTableContent.restore();
luckysheetTableContent.restore();
}

2
src/index.html

@ -136,7 +136,7 @@
// console.info('cellUpdated',r,c,oldValue, newValue, isRefresh)
},
sheetActivate:function(index, isPivotInitial, isNewSheet){
// console.info(index, isPivotInitial, isNewSheet)
console.info('sheetActive-----',index, isPivotInitial, isNewSheet)
},
rangeSelect:function(index, sheet){
// console.info(index, sheet)

Loading…
Cancel
Save