mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix calculate layout with hidden shapes
This commit is contained in:
parent
c249bd6f22
commit
792145353e
@ -19,7 +19,9 @@
|
||||
|
||||
([objects shapes parent]
|
||||
(when (d/not-empty? shapes)
|
||||
(let [points
|
||||
(let [shapes (->> shapes (remove :hidden))
|
||||
|
||||
points
|
||||
(->> shapes
|
||||
(map :id)
|
||||
(ctt/sort-z-index objects)
|
||||
|
||||
@ -117,7 +117,8 @@
|
||||
:layout-grid-rows [ctl/default-track-value ctl/default-track-value]}
|
||||
(ctl/create-cells [1 1 2 2]))
|
||||
|
||||
(let [all-shapes-rect (gco/shapes->rect shapes)
|
||||
(let [shapes (->> shapes (remove :hidden))
|
||||
all-shapes-rect (gco/shapes->rect shapes)
|
||||
shapes+bounds
|
||||
(->> shapes
|
||||
(map #(vector % (grc/points->rect (get % :points)))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user