0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Fix problem with align center and width 100%

This commit is contained in:
alonso.torres 2023-02-21 15:44:13 +01:00
parent 3c650ae47e
commit 28dce3cc8b

View file

@ -78,16 +78,18 @@
(conj (gpt/add base-p (hv min-width)))
(and col? h-center?)
(conj (gpt/add base-p (hv (/ min-width 2))))
(conj (gpt/add base-p (hv (/ min-width 2)))
(gpt/subtract base-p (hv (/ min-width 2))))
(and col? h-center?)
(and col? h-end?)
(conj (gpt/subtract base-p (hv min-width)))
(and row? v-start?)
(conj (gpt/add base-p (vv min-height)))
(and row? v-center?)
(conj (gpt/add base-p (vv (/ min-height 2))))
(conj (gpt/add base-p (vv (/ min-height 2)))
(gpt/subtract base-p (vv (/ min-height 2))))
(and row? v-end?)
(conj (gpt/subtract base-p (vv min-height))))))