Grid layout modifiers

This commit is contained in:
alonso.torres 2025-03-27 17:14:15 +01:00
parent d279b6c232
commit 63666fca48
6 changed files with 662 additions and 143 deletions

View file

@ -254,11 +254,11 @@ pub fn propagate_modifiers(state: &State, modifiers: Vec<TransformEntry>) -> Vec
entries.append(&mut children);
}
// if let Some(Layout::GridLayout(layout_data, grid_data)) = &frame_data.layout {
// let mut children =
// grid_layout::reflow_grid_layout(shape, layout_data, grid_data, shapes, &bounds);
// entries.append(&mut children);
// }
if let Some(Layout::GridLayout(layout_data, grid_data)) = &frame_data.layout {
let mut children =
grid_layout::reflow_grid_layout(shape, layout_data, grid_data, shapes, &bounds);
entries.append(&mut children);
}
reflown.insert(*id);
}
layout_reflows = Vec::new();