mirror of
https://github.com/penpot/penpot.git
synced 2026-03-22 10:23:43 +00:00
Merge pull request #8704 from penpot/superalex-fix-text-disappearing
🐛 Fix WASM text auto-width geometry on finalize
This commit is contained in:
@@ -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?)
|
||||
|
||||
Reference in New Issue
Block a user