mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
Merge pull request #2968 from penpot/alotor-bug-width-fill
🐛 Fix problem with align center and width 100%
This commit is contained in:
commit
4297b6fda8
1 changed files with 5 additions and 3 deletions
|
@ -78,16 +78,18 @@
|
||||||
(conj (gpt/add base-p (hv min-width)))
|
(conj (gpt/add base-p (hv min-width)))
|
||||||
|
|
||||||
(and col? h-center?)
|
(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)))
|
(conj (gpt/subtract base-p (hv min-width)))
|
||||||
|
|
||||||
(and row? v-start?)
|
(and row? v-start?)
|
||||||
(conj (gpt/add base-p (vv min-height)))
|
(conj (gpt/add base-p (vv min-height)))
|
||||||
|
|
||||||
(and row? v-center?)
|
(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?)
|
(and row? v-end?)
|
||||||
(conj (gpt/subtract base-p (vv min-height))))))
|
(conj (gpt/subtract base-p (vv min-height))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue