Initialize element before layout
This commit is contained in:
parent
42095f0673
commit
fccc4ca85c
1 changed files with 3 additions and 1 deletions
|
@ -246,7 +246,9 @@ where
|
||||||
cx: &mut ViewContext<V>,
|
cx: &mut ViewContext<V>,
|
||||||
) -> Self::ElementState {
|
) -> Self::ElementState {
|
||||||
let render = self.take().unwrap();
|
let render = self.take().unwrap();
|
||||||
(render)(view_state, cx).render()
|
let mut rendered_element = (render)(view_state, cx).render();
|
||||||
|
rendered_element.initialize(view_state, cx);
|
||||||
|
rendered_element
|
||||||
}
|
}
|
||||||
|
|
||||||
fn layout(
|
fn layout(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue