Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'main' into refine-render-traits

Piotr Osiewicz406edd279a58
diff --cc crates/gpui2/src/elements/overlay.rs
index 6ece891708b,61f24a162bd..eab3ee60b41
--- a/crates/gpui2/src/elements/overlay.rs
+++ b/crates/gpui2/src/elements/overlay.rs
@@@ -68,12 -68,14 +68,14 @@@ impl Element for Overlay
let child_layout_ids = self
.children
.iter_mut()
- .map(|child| child.layout(cx))
+ .map(|child| child.request_layout(cx))
.collect::<SmallVec<_>>();
- let mut overlay_style = Style::default();
- overlay_style.position = Position::Absolute;
- overlay_style.display = Display::Flex;
+ let overlay_style = Style {
+ position: Position::Absolute,
+ display: Display::Flex,
+ ..Style::default()
+ };
let layout_id = cx.request_layout(&overlay_style, child_layout_ids.iter().copied());