From d1c24ea8f09ec7bc7b1c6803b4817c629f96a85c Mon Sep 17 00:00:00 2001 From: flowerField Date: Fri, 4 Jun 2021 11:07:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug#671=20=E6=8D=A2=E8=A1=8C=E5=90=8E?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=98=BE=E7=A4=BA=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/getRowlen.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/global/getRowlen.js b/src/global/getRowlen.js index 1ef292d..2eb95ed 100644 --- a/src/global/getRowlen.js +++ b/src/global/getRowlen.js @@ -377,7 +377,6 @@ function getCellTextInfo(cell , ctx, option){ } similarIndex++; - } isInline = true; } @@ -404,14 +403,6 @@ function getCellTextInfo(cell , ctx, option){ } } - - - - // let measureText = getMeasureText(value, ctx); - // //luckysheetTableContent.measureText(value); - // let textWidth = measureText.width; - // let textHeight = measureText.actualBoundingBoxDescent + measureText.actualBoundingBoxAscent; - if(tr=="3"){//vertical text ctx.textBaseline = 'top'; @@ -920,7 +911,7 @@ function getCellTextInfo(cell , ctx, option){ if(preMeasureText!=null){ spaceOrTwoByte = { index:i, - str:preStr, + str:preStr + lastWord, width:preTextWidth, height:preTextHeight, asc:preMeasureText.actualBoundingBoxAscent,