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

Commit

Permalink
fix(celloverflow border bug): celloverflow border bug
Browse files Browse the repository at this point in the history
celloverflow border bug
  • Loading branch information
wpxp123456 committed Sep 7, 2020
1 parent ba0b047 commit 86403c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/global/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,13 +957,15 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of
let end_r = borderOffset[bd_r + "_" + bd_c].end_r;
let end_c = borderOffset[bd_r + "_" + bd_c].end_c;

let cellOverflow_colInObj = cellOverflow_colIn(cellOverflowMap, bd_r, bd_c, dataset_col_st, dataset_col_ed);

let borderLeft = borderInfoCompute[x].l;
if(borderLeft != null){
if(borderLeft != null && (!cellOverflow_colInObj.colIn || cellOverflow_colInObj.stc == bd_c)){
borderLeftRender(borderLeft.style, borderLeft.color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, luckysheetTableContent);
}

let borderRight = borderInfoCompute[x].r;
if(borderRight != null){
if(borderRight != null && (!cellOverflow_colInObj.colIn || cellOverflow_colInObj.colLast)){
borderRightRender(borderRight.style, borderRight.color, start_r, start_c, end_r, end_c, offsetLeft, offsetTop, luckysheetTableContent);
}

Expand Down

0 comments on commit 86403c2

Please sign in to comment.