Browse Source

中英文自动换行问题

master
Smillence 4 years ago
parent
commit
d610678c9b
  1. 2
      src/global/getRowlen.js

2
src/global/getRowlen.js

@ -1002,7 +1002,7 @@ function getCellTextInfo(cell , ctx, option){
if(preMeasureText!=null){ if(preMeasureText!=null){
spaceOrTwoByte = { spaceOrTwoByte = {
index:i, index:i,
str:preStr, str:preStr + lastWord,
width:preTextWidth, width:preTextWidth,
height:preTextHeight, height:preTextHeight,
asc:preMeasureText.actualBoundingBoxAscent, asc:preMeasureText.actualBoundingBoxAscent,

Loading…
Cancel
Save