mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +00:00
🐛 Fix WASM text auto-width geometry on finalize
This commit is contained in:
parent
58d959a37e
commit
353d8677b0
@ -978,8 +978,7 @@
|
||||
(select-keys shape [:selrect :points :width :height]))
|
||||
content-has-text? (v2-content-has-text? content)
|
||||
prev-content-has-text? (v2-content-has-text? prev-content)
|
||||
new-size (when (and (not= :fixed (:grow-type shape))
|
||||
content-has-text?)
|
||||
new-size (when (not= :fixed (:grow-type shape))
|
||||
(dwwt/get-wasm-text-new-size shape content))
|
||||
;; New shapes: single undo on finalize only (no per-keystroke undo)
|
||||
effective-save-undo? (if new-shape? finalize? save-undo?)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user