Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Make `Empty` request layout with `Display::None` by default (#40900)
Finn Evers5738bde3ce0d
diff --git a/crates/gpui/src/element.rs b/crates/gpui/src/element.rsindex a3fc6269f33..5fa2f9ead82 100644--- a/crates/gpui/src/element.rs+++ b/crates/gpui/src/element.rs@@ -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(