🐛 Fix weird resizing on combine variants with constraints scale (#7134)

This commit is contained in:
Pablo Alba 2025-08-18 21:35:04 +02:00 committed by GitHub
parent b3b183c151
commit 6b7f91c671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -601,6 +601,10 @@
(dwu/start-undo-transaction undo-id)
(transform-in-variant (first selected) variant-id delta prefix add-wrapper? false false)
(dwsh/relocate-shapes (into #{} (-> selected rest reverse)) variant-id 0)
(dwsh/update-shapes selected #(-> %
(assoc :constraints-h :left)
(assoc :constraints-v :top)
(assoc :fixed-scroll false)))
(dwt/update-dimensions [variant-id] :width (+ (:width rect) 60))
(dwt/update-dimensions [variant-id] :height (+ (:height rect) 60))
(dwsh/relocate-shapes #{variant-id} common-parent index)