Revert "Store a z-index id per-layer (#4128)"
This reverts commite4065c45cb, reversing changes made to6c2236ae1b.
This commit is contained in:
1 parent
40af370595
commit
85e174f2da
7 files changed
+45
-46
No files matched your search
@@ -4334,7 +4334,7 @@ impl Element for DisconnectedOverlay {
|
||||
}
|
||||
|
||||
fn paint(&mut self, bounds: Bounds<Pixels>, overlay: &mut Self::State, cx: &mut WindowContext) {
|
||||
cx.with_z_index(u16::MAX, |cx| {
|
||||
cx.with_z_index(u8::MAX, |cx| {
|
||||
cx.add_opaque_layer(bounds);
|
||||
overlay.paint(cx);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user