mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 22:28:23 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
68c1d9afaf
6 changed files with 36 additions and 28 deletions
|
@ -233,7 +233,7 @@
|
|||
(update :parent-stack conjv (:id obj)))))
|
||||
|
||||
(defn close-artboard [file]
|
||||
(let [parent-id (-> file :parent-id peek)
|
||||
(let [parent-id (-> file :parent-stack peek)
|
||||
parent (lookup-shape file parent-id)
|
||||
current-frame-id (or (:frame-id parent)
|
||||
(when (nil? (:current-component-id file))
|
||||
|
|
|
@ -162,7 +162,6 @@
|
|||
|
||||
(defn add-lines-positions
|
||||
[parent layout-bounds layout-lines]
|
||||
|
||||
(let [row? (ctl/row? parent)
|
||||
col? (ctl/col? parent)
|
||||
auto-width? (ctl/auto-width? parent)
|
||||
|
@ -410,6 +409,9 @@
|
|||
reverse? (ctl/reverse? shape)
|
||||
children (cond->> children (not reverse?) reverse)
|
||||
|
||||
;; Don't take into account absolute children
|
||||
children (->> children (remove (comp ctl/layout-absolute? second)))
|
||||
|
||||
;; Creates the layout lines information
|
||||
layout-lines
|
||||
(->> (init-layout-lines shape children layout-bounds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue