mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
🐛 Fix problem with reorder on grid layout layers
This commit is contained in:
parent
2d512ef273
commit
377f636b8e
3 changed files with 5 additions and 2 deletions
|
@ -31,6 +31,7 @@
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
- Fix problem with some texts desynchronization [Taiga #9379](https://tree.taiga.io/project/penpot/issue/9379)
|
- Fix problem with some texts desynchronization [Taiga #9379](https://tree.taiga.io/project/penpot/issue/9379)
|
||||||
|
- Fix problem with reoder grid layers [#5446](https://github.com/penpot/penpot/issues/5446)
|
||||||
|
|
||||||
## 2.3.3
|
## 2.3.3
|
||||||
|
|
||||||
|
|
|
@ -304,7 +304,9 @@
|
||||||
(->> ids
|
(->> ids
|
||||||
(mapcat #(ctn/get-child-heads objects %))
|
(mapcat #(ctn/get-child-heads objects %))
|
||||||
(map :id)))
|
(map :id)))
|
||||||
cell (or cell (ctl/get-cell-by-index parent to-index))]
|
|
||||||
|
index-cell-data (when to-index (ctl/get-cell-by-index parent to-index))
|
||||||
|
cell (or cell (and index-cell-data [(:row index-cell-data) (:column index-cell-data)]))]
|
||||||
|
|
||||||
(-> changes
|
(-> changes
|
||||||
(pcb/with-page-id page-id)
|
(pcb/with-page-id page-id)
|
||||||
|
|
|
@ -1479,7 +1479,7 @@
|
||||||
(defn get-cell-by-index
|
(defn get-cell-by-index
|
||||||
[parent to-index]
|
[parent to-index]
|
||||||
(let [cells (get-cells parent {:sort? true :remove-empty? true})
|
(let [cells (get-cells parent {:sort? true :remove-empty? true})
|
||||||
to-index (- (count cells) to-index)]
|
to-index (- (count cells) to-index 1)]
|
||||||
(nth cells to-index nil)))
|
(nth cells to-index nil)))
|
||||||
|
|
||||||
(defn add-children-to-index
|
(defn add-children-to-index
|
||||||
|
|
Loading…
Add table
Reference in a new issue