@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.js CHANGED
@@ -11493,7 +11493,8 @@ class ParagraphMeasure {
11493
11493
  innerLineRect.line.rect.height = finalLineHeight;
11494
11494
  for (let k = 0; k < innerLineRect.line.length; k++) {
11495
11495
  const leaf = innerLineRect.line.getChild(k);
11496
- leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
11496
+ //leaf.rect.y = innerLineRect.line.rect.height - paddingBottom - leaf.rect.height;
11497
+ leaf.rect.y = Math.ceil((innerLineRect.line.rect.height - leaf.rect.height) / 2);
11497
11498
  }
11498
11499
  render.addChild(innerLineRect.line);
11499
11500
  }