0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Fix/ min and max height-width application

This commit is contained in:
Akshay Gupta 2024-06-18 23:52:54 +05:30
parent 1ebd2ee3d7
commit 0afddac5d1
No known key found for this signature in database

View file

@ -192,11 +192,13 @@
:on-update-shape update-shape-dimensions
:attributes attributes)
(set/superset? {:layout-item-min-w :layout-item-max-w
:layout-item-min-h :layout-item-max-h} attributes)
(set/superset? #{:layout-item-min-w :layout-item-max-w
:layout-item-min-h :layout-item-max-h} attributes)
(assoc token-type-props
:on-update-shape update-layout-sizing-limits
:attributes attributes))]
:attributes attributes)
:else token-type-props)]
(wtc/on-apply-token {:token token
:token-type-props updated-token-type-props
:selected-shapes selected-shapes})))