@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.js
CHANGED
@@ -11492,7 +11492,7 @@ class ParagraphMeasure {
|
|
11492
11492
|
return;
|
11493
11493
|
//return indent;
|
11494
11494
|
}
|
11495
|
-
const spaceWidth = (limitWidth - paraLineRender.line.rect.width) / (renderUnitCount - 1);
|
11495
|
+
const spaceWidth = (limitWidth - paraLineRender.line.rect.width - paraLineRender.startX) / (renderUnitCount - 1);
|
11496
11496
|
this.setAlignJustify(paraLineRender.line, 0, spaceWidth);
|
11497
11497
|
//return indent;
|
11498
11498
|
}
|
@@ -11511,7 +11511,7 @@ class ParagraphMeasure {
|
|
11511
11511
|
for (let i = 0; i < render.length; i++) {
|
11512
11512
|
const currRender = render.getChild(i);
|
11513
11513
|
count += this.setAlignJustify(currRender, count, spaceWidth);
|
11514
|
-
currRender.rect.x
|
11514
|
+
currRender.rect.x += width;
|
11515
11515
|
width += currRender.rect.width;
|
11516
11516
|
}
|
11517
11517
|
render.rect.width = width;
|