Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Checkpoint
Antonio Scandurrae03171874773
diff --git a/crates/gpui3/src/elements/div.rs b/crates/gpui3/src/elements/div.rsindex 7aaaa3dbe7b..d110d811320 100644--- a/crates/gpui3/src/elements/div.rs+++ b/crates/gpui3/src/elements/div.rs@@ -331,17 +331,19 @@ whereelement_state: Option<Self::ElementState>,cx: &mut ViewContext<Self::ViewState>,) -> (LayoutId, Self::ElementState) {- self.with_element_id(cx, |this, cx| {- let layout_ids = this- .children- .iter_mut()- .map(|child| child.layout(view_state, cx))- .collect::<Vec<_>>();-- let element_state = element_state.unwrap_or_default();- let style = this.compute_style(Bounds::default(), &element_state, cx);- let layout_id = cx.request_layout(&style, layout_ids);- (layout_id, element_state)+ let element_state = element_state.unwrap_or_default();+ let style = self.compute_style(Bounds::default(), &element_state, cx);+ style.apply_text_style(cx, |cx| {+ self.with_element_id(cx, |this, cx| {+ let layout_ids = this+ .children+ .iter_mut()+ .map(|child| child.layout(view_state, cx))+ .collect::<Vec<_>>();++ let layout_id = cx.request_layout(&style, layout_ids);+ (layout_id, element_state)+ })})}