0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-25 16:25:56 -05:00

🐛 Bad padding gui on nil sizing

This commit is contained in:
Pablo Alba 2023-03-24 16:53:36 +01:00 committed by Alonso Torres
parent 91e81823a5
commit 4d70d3b909

View file

@ -390,8 +390,8 @@
:p3 (if (:flip-y frame) true false)
:p4 (if (:flip-x frame) true false)}
negate (cond-> negate
(= :fix (:layout-item-h-sizing frame)) (assoc :p2 (not (:p2 negate)))
(= :fix (:layout-item-v-sizing frame)) (assoc :p3 (not (:p3 negate))))
(not= :auto (:layout-item-h-sizing frame)) (assoc :p2 (not (:p2 negate)))
(not= :auto (:layout-item-v-sizing frame)) (assoc :p3 (not (:p3 negate))))
padding-rect-data {:p1 {:key (str frame-id "-p1")
:x x1