@hailin-zheng/editor-core 1.1.33 → 1.1.34
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 -1
- package/index-cjs.js.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -11522,7 +11522,8 @@ class ParagraphMeasure {
|
|
11522
11522
|
innerLineRect.line.rect.height = finalLineHeight;
|
11523
11523
|
for (let k = 0; k < innerLineRect.line.length; k++) {
|
11524
11524
|
const leaf = innerLineRect.line.getChild(k);
|
11525
|
-
leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
|
11525
|
+
//leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
|
11526
|
+
leaf.rect.y = Math.ceil((innerLineRect.line.rect.height - leaf.rect.height) / 2);
|
11526
11527
|
}
|
11527
11528
|
render.addChild(innerLineRect.line);
|
11528
11529
|
}
|