Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(rowtitle): bug
Browse files Browse the repository at this point in the history
fix rowtitle resize bug
  • Loading branch information
mengshukeji committed Dec 18, 2020
1 parent e1282f2 commit 8faeffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

Expand Down Expand Up @@ -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();

}
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8faeffe

Please sign in to comment.