mirror of
https://github.com/penpot/penpot.git
synced 2025-06-23 19:36:59 +02:00
🐛 Fix problem with auto-width and space-around
This commit is contained in:
parent
ca5b59f102
commit
d5c7a6e547
1 changed files with 2 additions and 4 deletions
|
@ -28,8 +28,6 @@
|
|||
h-center? (ctl/h-center? parent)
|
||||
h-end? (ctl/h-end? parent)
|
||||
|
||||
around? (ctl/space-around? parent)
|
||||
between? (ctl/space-between? parent)
|
||||
fill-w? (ctl/fill-width? child)
|
||||
fill-h? (ctl/fill-height? child)
|
||||
|
||||
|
@ -70,7 +68,7 @@
|
|||
(gpt/add base-p (hv 0.01))
|
||||
(gpt/add base-p (vv 0.01))]
|
||||
|
||||
(or col? h-start? around? between?)
|
||||
(and col? h-start?)
|
||||
(conj (gpt/add base-p (hv min-width)))
|
||||
|
||||
(and col? h-center?)
|
||||
|
@ -79,7 +77,7 @@
|
|||
(and col? h-center?)
|
||||
(conj (gpt/subtract base-p (hv min-width)))
|
||||
|
||||
(or row? v-start? around? between?)
|
||||
(and row? v-start?)
|
||||
(conj (gpt/add base-p (vv min-height)))
|
||||
|
||||
(and row? v-center?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue