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:
parent
c3ce0eb794
commit
480a72b6e2
1 changed files with 6 additions and 6 deletions
|
@ -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 [_ _ _]
|
||||
|
|
Loading…
Add table
Reference in a new issue