@hailin-zheng/editor-core 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index-cjs.js +2 -2
- package/index-cjs.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -11522,7 +11522,7 @@ class ParagraphMeasure {
|
|
11522
11522
|
return;
|
11523
11523
|
//return indent;
|
11524
11524
|
}
|
11525
|
-
const spaceWidth = (limitWidth - paraLineRender.line.rect.width) / (renderUnitCount - 1);
|
11525
|
+
const spaceWidth = (limitWidth - paraLineRender.line.rect.width - paraLineRender.startX) / (renderUnitCount - 1);
|
11526
11526
|
this.setAlignJustify(paraLineRender.line, 0, spaceWidth);
|
11527
11527
|
//return indent;
|
11528
11528
|
}
|
@@ -11541,7 +11541,7 @@ class ParagraphMeasure {
|
|
11541
11541
|
for (let i = 0; i < render.length; i++) {
|
11542
11542
|
const currRender = render.getChild(i);
|
11543
11543
|
count += this.setAlignJustify(currRender, count, spaceWidth);
|
11544
|
-
currRender.rect.x
|
11544
|
+
currRender.rect.x += width;
|
11545
11545
|
width += currRender.rect.width;
|
11546
11546
|
}
|
11547
11547
|
render.rect.width = width;
|