From 300ad15f5a646a3c2fe74fad875c4b8e92856887 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 24 Mar 2023 16:53:36 +0100 Subject: [PATCH] :bug: Bad padding gui on nil sizing --- frontend/src/app/main/ui/measurements.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/measurements.cljs b/frontend/src/app/main/ui/measurements.cljs index 4b868473a..d6bf5244d 100644 --- a/frontend/src/app/main/ui/measurements.cljs +++ b/frontend/src/app/main/ui/measurements.cljs @@ -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