Skip to content

Commit

Permalink
Update to layout pass spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Sep 11, 2024
1 parent 9bba00c commit dec9ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masonry/src/widget/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl Widget for Grid {
child.height as f64 * height_unit - self.grid_spacing,
);
let child_bc = BoxConstraints::new(cell_size, cell_size);
let _ = child.widget.layout(ctx, &child_bc);
let _ = ctx.run_layout(&mut child.widget, &child_bc);
ctx.place_child(
&mut child.widget,
Point::new(child.x as f64 * width_unit, child.y as f64 * height_unit),
Expand Down

0 comments on commit dec9ff7

Please sign in to comment.