mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 16:51:39 +02:00
Fix/ min and max height-width application
This commit is contained in:
parent
1ebd2ee3d7
commit
0afddac5d1
1 changed files with 5 additions and 3 deletions
|
@ -192,11 +192,13 @@
|
||||||
:on-update-shape update-shape-dimensions
|
:on-update-shape update-shape-dimensions
|
||||||
:attributes attributes)
|
:attributes attributes)
|
||||||
|
|
||||||
(set/superset? {:layout-item-min-w :layout-item-max-w
|
(set/superset? #{:layout-item-min-w :layout-item-max-w
|
||||||
:layout-item-min-h :layout-item-max-h} attributes)
|
:layout-item-min-h :layout-item-max-h} attributes)
|
||||||
(assoc token-type-props
|
(assoc token-type-props
|
||||||
:on-update-shape update-layout-sizing-limits
|
:on-update-shape update-layout-sizing-limits
|
||||||
:attributes attributes))]
|
:attributes attributes)
|
||||||
|
|
||||||
|
:else token-type-props)]
|
||||||
(wtc/on-apply-token {:token token
|
(wtc/on-apply-token {:token token
|
||||||
:token-type-props updated-token-type-props
|
:token-type-props updated-token-type-props
|
||||||
:selected-shapes selected-shapes})))
|
:selected-shapes selected-shapes})))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue