From f56102fd0680ad5033b8f8421a90a937d5e6eeaf Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Sun, 14 Dec 2025 11:50:42 -0500 Subject: [PATCH] minor carryovered bug fix --- modules/LayoutEngine.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/LayoutEngine.lua b/modules/LayoutEngine.lua index d220b24..0fdec9f 100644 --- a/modules/LayoutEngine.lua +++ b/modules/LayoutEngine.lua @@ -263,8 +263,11 @@ function LayoutEngine:layoutChildren() elseif child.positioning == self._Positioning.RELATIVE then -- Reposition relative children to match parent's new position -- This is needed when the parent (absolute container) moves after children are created - child.x = baseX - child.y = baseY + -- Preserve any explicit x/y offsets that were set on the child + local offsetX = (child.units.x and child.units.x.value) or 0 + local offsetY = (child.units.y and child.units.y.value) or 0 + child.x = baseX + offsetX + child.y = baseY + offsetY -- If child has children, recursively layout them if #child.children > 0 then