mirror of https://github.com/penpot/penpot.git
🐛 Fix problem with layout z-index
This commit is contained in:
parent
dedeae8641
commit
dd5f3396d1
|
|
@ -739,7 +739,7 @@
|
|||
|
||||
(d/nilv align-self 0)
|
||||
is-absolute
|
||||
(d/nilv z-index))))
|
||||
(d/nilv z-index 0))))
|
||||
|
||||
(defn clear-layout
|
||||
[]
|
||||
|
|
|
|||
|
|
@ -1641,9 +1641,9 @@ impl RenderState {
|
|||
}
|
||||
|
||||
children_ids.sort_by(|id1, id2| {
|
||||
let z1 = tree.get(id1).map_or_else(|| 0, |s| s.z_index());
|
||||
let z2 = tree.get(id2).map_or_else(|| 0, |s| s.z_index());
|
||||
z1.cmp(&z2)
|
||||
let z1 = tree.get(id1).map(|s| s.z_index()).unwrap_or(0);
|
||||
let z2 = tree.get(id2).map(|s| s.z_index()).unwrap_or(0);
|
||||
z2.cmp(&z1)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ fn propagate_reflow(
|
|||
}
|
||||
_ => {
|
||||
// Other shapes don't have to be reflown
|
||||
reflow_parent = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue