From 52a4fc6030bda5c31bc825152cc8d57c2e0b3618 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 26 Jun 2025 15:47:13 +0200 Subject: [PATCH] :bug: Fix drop index on flex layout wasm --- render-wasm/src/shapes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render-wasm/src/shapes.rs b/render-wasm/src/shapes.rs index 4e1f88b031..b17224b90e 100644 --- a/render-wasm/src/shapes.rs +++ b/render-wasm/src/shapes.rs @@ -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);