fix(编辑能力): 修复文本框留白与缩放异常

This commit is contained in:
xiaoqidun committed 2026-10-28 11:43:09 +08:00
1 parent 48d1d29b7e
commit 1215f7aa08
3 files changed
+9 -10

No files matched your search

+2 -1
View File
@@ -4956,11 +4956,12 @@ func (e *businessEngine) editorRichText(item map[string]any, object ofdgo.Graphi
if len(value.Runs) == 0 || object.CompositeGraphicUnit.Clips != nil {
return
}
width, height := local.W, local.H
width := local.W
_, contentBounds, err := e.currentEditor.LayoutRichText(value, width)
if err != nil {
return
}
height := contentBounds.Y + contentBounds.H
format, layout := value.Runs[0].Format, value.Layout
selection := contentBounds
if !value.AutoWidth || layout.Wrap {