ZupIT/beagle

yoga_engine: yoga must recalculate layout when when widgets change

Closed this issue · 0 comments

Use case

The current implementation of yoga_engine does not reflect updates to the tree or widget sizes. So when any widget is resized after rendering, or when any widget is inserted or removed from the tree, these events are not reflected to yoga.

Proposal

Implement in the RenderYoga class in the method responsible for capturing adding and removing children and size changes events and rebuilding the yoga node tree or marking them as dirty.