gpui: Make Empty request layout with Display::None by default (#40900)

Release Notes:

- N/A
This commit is contained in:
Finn Evers
2025-10-22 20:54:29 +02:00
committed by GitHub
parent 6622902964
commit 5738bde3ce
+11 -1
View File
@@ -741,7 +741,17 @@ impl Element for Empty {
window: &mut Window,
cx: &mut App,
) -> (LayoutId, Self::RequestLayoutState) {
(window.request_layout(Style::default(), None, cx), ())
(
window.request_layout(
Style {
display: crate::Display::None,
..Default::default()
},
None,
cx,
),
(),
)
}
fn prepaint(