Store a z-index id per-layer

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Julia
2024-01-18 13:24:25 -05:00
co-authored by Nathan Sobo
parent 7b9e7fea4e
commit bc2302f723
7 changed files with 46 additions and 45 deletions
+1 -1
View File
@@ -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(u8::MAX, |cx| {
cx.with_z_index(u16::MAX, |cx| {
cx.add_opaque_layer(bounds);
overlay.paint(cx);
})