🐛 Fix drop index on flex layout wasm

This commit is contained in:
alonso.torres 2025-06-26 15:47:13 +02:00 committed by Belén Albeza
parent 403d92838a
commit 52a4fc6030

View File

@ -985,7 +985,7 @@ pub fn modified_children_ids(
for st in structure {
match st.entry_type {
StructureEntryType::AddChild => {
result.insert(st.index as usize, st.id);
result.insert(result.len() - st.index as usize, st.id);
}
StructureEntryType::RemoveChild => {
to_remove.insert(&st.id);