Skip to content

Commit

Permalink
Lay out UserInterface after diffing
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Aug 5, 2022
1 parent f294c2d commit c23ed7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/src/user_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ where
) -> Self {
let root = root.into();

let base =
renderer.layout(&root, &layout::Limits::new(Size::ZERO, bounds));

let Cache { mut state } = cache;
state.diff(root.as_widget());

let base =
renderer.layout(&root, &layout::Limits::new(Size::ZERO, bounds));

UserInterface {
root,
base,
Expand Down

0 comments on commit c23ed7e

Please sign in to comment.