mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
fix(编辑能力): 修复文本框留白与缩放异常
This commit is contained in:
1 parent
48d1d29b7e
commit
1215f7aa08
3 files changed
+9
-10
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user