Checkpoint

This commit is contained in:
Nathan Sobo 2023-09-08 14:09:25 -06:00
parent 14fc386dc8
commit c3b1264c05
14 changed files with 38 additions and 35 deletions

View file

@ -67,7 +67,7 @@ pub fn derive_element(input: TokenStream) -> TokenStream {
fn layout(
&mut self,
view: &mut V,
cx: &mut gpui2::element::LayoutContext<V>,
cx: &mut gpui2::ViewContext<V>,
) -> anyhow::Result<(gpui2::element::LayoutId, Self::PaintState)> {
let mut rendered_element = self.render(view, cx).into_element().into_any();
let layout_id = rendered_element.layout(view, cx)?;