mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
🐛 Fix masks in layout flex
This commit is contained in:
parent
e53e715861
commit
e43fc0feb0
1 changed files with 3 additions and 3 deletions
|
@ -147,6 +147,9 @@
|
||||||
children (cph/get-immediate-children objects shape-id)]
|
children (cph/get-immediate-children objects shape-id)]
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
|
(cph/mask-shape? shape)
|
||||||
|
(get-group-bounds objects bounds modif-tree (-> children first))
|
||||||
|
|
||||||
(cph/group-shape? shape)
|
(cph/group-shape? shape)
|
||||||
(let [;; Transform here to then calculate the bounds relative to the transform
|
(let [;; Transform here to then calculate the bounds relative to the transform
|
||||||
current-bounds
|
current-bounds
|
||||||
|
@ -159,9 +162,6 @@
|
||||||
(mapv #(get-group-bounds objects bounds modif-tree %)))]
|
(mapv #(get-group-bounds objects bounds modif-tree %)))]
|
||||||
(gpo/merge-parent-coords-bounds children-bounds current-bounds))
|
(gpo/merge-parent-coords-bounds children-bounds current-bounds))
|
||||||
|
|
||||||
(cph/mask-shape? shape)
|
|
||||||
(get-group-bounds objects bounds modif-tree (-> children first))
|
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(cond-> @(get bounds shape-id)
|
(cond-> @(get bounds shape-id)
|
||||||
(not (ctm/empty? modifiers))
|
(not (ctm/empty? modifiers))
|
||||||
|
|
Loading…
Add table
Reference in a new issue