Store a z-index id per-layer (#4128)

Release Notes:

- N/A
This commit is contained in:
Julia 2024-01-18 13:31:45 -05:00 committed by GitHub
commit 28a2337218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 45 deletions

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);
})