Skip to content

Commit 261a423

Browse files
MrSubidubilidm0707
authored andcommitted
gpui: Make Empty request layout with Display::None by default (zed-industries#40900)
Release Notes: - N/A
1 parent 35b8193 commit 261a423

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

crates/gpui/src/element.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,17 @@ impl Element for Empty {
741741
window: &mut Window,
742742
cx: &mut App,
743743
) -> (LayoutId, Self::RequestLayoutState) {
744-
(window.request_layout(Style::default(), None, cx), ())
744+
(
745+
window.request_layout(
746+
Style {
747+
display: crate::Display::None,
748+
..Default::default()
749+
},
750+
None,
751+
cx,
752+
),
753+
(),
754+
)
745755
}
746756

747757
fn prepaint(

0 commit comments

Comments
 (0)