diff --git a/src/global/draw.js b/src/global/draw.js index 09bf7fc..c38e4a3 100644 --- a/src/global/draw.js +++ b/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(); } diff --git a/src/index.html b/src/index.html index d463da7..5aa0287 100644 --- a/src/index.html +++ b/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)