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

Commit

Permalink
fix(bug): bug
Browse files Browse the repository at this point in the history
bug
  • Loading branch information
wpxp123456 committed Jul 24, 2020
1 parent e1d5b2c commit f53addb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/menuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3634,7 +3634,9 @@ const menuButton = {
"13": "Thick"
};

type = borderType[type.toString()];
type = borderType[type.toString()];

canvasborder.save();

try {
if(type == "Hair"){
Expand Down
4 changes: 4 additions & 0 deletions src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of

canvas.stroke();
canvas.closePath();
canvas.restore();
}

let borderRightRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas){
Expand All @@ -1571,6 +1572,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of

canvas.stroke();
canvas.closePath();
canvas.restore();
}

let borderBottomRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas){
Expand All @@ -1587,6 +1589,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of

canvas.stroke();
canvas.closePath();
canvas.restore();
}

let borderTopRender = function(style, color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, canvas){
Expand All @@ -1603,6 +1606,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of

canvas.stroke();
canvas.closePath();
canvas.restore();
}

let borderInfoCompute = getBorderInfoCompute();
Expand Down

0 comments on commit f53addb

Please sign in to comment.