mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
Merge pull request #8903 from penpot/alotor-fix-text-grow-problem
🐛 Fix problem with text auto grow in layouts
This commit is contained in:
commit
90fcc9f597
@ -1049,16 +1049,15 @@
|
|||||||
content-has-text?
|
content-has-text?
|
||||||
has-prev-content?)
|
has-prev-content?)
|
||||||
(dissoc :prev-content))
|
(dissoc :prev-content))
|
||||||
|
|
||||||
(cond-> (and (not new-shape?)
|
(cond-> (and (not new-shape?)
|
||||||
prev-content-has-text?
|
prev-content-has-text?
|
||||||
(not content-has-text?)
|
(not content-has-text?)
|
||||||
(not finalize?))
|
(not finalize?))
|
||||||
(assoc :prev-content prev-content))
|
(assoc :prev-content prev-content))
|
||||||
|
|
||||||
(cond-> (and update-name? (some? name))
|
(cond-> (and update-name? (some? name))
|
||||||
(assoc :name name))
|
(assoc :name name))))
|
||||||
(cond-> (some? new-size)
|
|
||||||
(gsh/transform-shape
|
|
||||||
(ctm/change-size shape (:width new-size) (:height new-size))))))
|
|
||||||
{:save-undo? finalize-save-undo-first?
|
{:save-undo? finalize-save-undo-first?
|
||||||
:stack-undo? effective-stack-undo?
|
:stack-undo? effective-stack-undo?
|
||||||
:undo-group (when new-shape? id)})
|
:undo-group (when new-shape? id)})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user