Compare commits

...

1 Commits

Author SHA1 Message Date
alonso.torres
757f7a0dee 🐛 Fix problem with flex layout auto sizing 2026-02-16 17:08:18 +01:00

View File

@@ -441,12 +441,18 @@ pub fn propagate_modifiers(
db.cmp(&da)
});
// This temporary bounds is necesary so the layouts can be calculated
// correctly but will be discarded before the next iteration for the
// bounds to be calculated properly with the modifiers.
let mut bounds_temp = bounds.clone();
for id in &layout_reflows_vec {
if reflown.contains(id) {
continue;
}
reflow_shape(id, state, &mut reflown, &mut entries, &mut bounds);
reflow_shape(id, state, &mut reflown, &mut entries, &mut bounds_temp);
}
layout_reflows = HashSet::new();
}
#[allow(dead_code)]