From 86403c20b329ea4106d6498c33927b714e22941b Mon Sep 17 00:00:00 2001 From: wpxp123456 <2677556700@qq.com> Date: Mon, 7 Sep 2020 16:20:15 +0800 Subject: [PATCH] fix(celloverflow border bug): celloverflow border bug celloverflow border bug --- src/global/draw.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/global/draw.js b/src/global/draw.js index 527a55834..379f9ee7e 100644 --- a/src/global/draw.js +++ b/src/global/draw.js @@ -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); }