0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix paddings and gaps prediction on create layout

This commit is contained in:
Pablo Alba 2023-03-09 09:25:10 +01:00
parent c3ce0eb794
commit 480a72b6e2

View file

@ -181,11 +181,11 @@
(dwc/update-shapes
ids
(fn [shape]
(cond-> shape
(not from-frame?)
(-> (assoc :layout-item-h-sizing :auto
:layout-item-v-sizing :auto)
(merge layout-params)))))
(-> shape
(cond-> (not from-frame?)
(assoc :layout-item-h-sizing :auto
:layout-item-v-sizing :auto))
(merge layout-params))))
(ptk/data-event :layout/update ids)
(dwc/update-shapes children-ids #(dissoc % :constraints-h :constraints-v))
(dwu/commit-undo-transaction undo-id))))))
@ -422,7 +422,7 @@
(defn remove-layout-track
[ids type index]
(assert (#{:row :column} type))
(ptk/reify ::remove-layout-column
ptk/WatchEvent
(watch [_ _ _]