Prevent z-index id shuffle when number of z-indicies in the scene change
This commit is contained in:
parent
849a1324f7
commit
941e838be9
3 changed files with 44 additions and 10 deletions
|
@ -328,7 +328,13 @@ impl Element for AnyView {
|
|||
element.draw(bounds.origin, bounds.size.into(), cx);
|
||||
}
|
||||
|
||||
state.next_stacking_order_id = cx.window.next_frame.next_stacking_order_id;
|
||||
state.next_stacking_order_id = cx
|
||||
.window
|
||||
.next_frame
|
||||
.next_stacking_order_ids
|
||||
.last()
|
||||
.copied()
|
||||
.unwrap();
|
||||
state.cache_key = Some(ViewCacheKey {
|
||||
bounds,
|
||||
stacking_order: cx.stacking_order().clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue