minor carryovered bug fix

This commit is contained in:
Michael Freno
2025-12-14 11:50:42 -05:00
parent a3de78a343
commit f56102fd06

View File

@@ -263,8 +263,11 @@ function LayoutEngine:layoutChildren()
elseif child.positioning == self._Positioning.RELATIVE then elseif child.positioning == self._Positioning.RELATIVE then
-- Reposition relative children to match parent's new position -- Reposition relative children to match parent's new position
-- This is needed when the parent (absolute container) moves after children are created -- This is needed when the parent (absolute container) moves after children are created
child.x = baseX -- Preserve any explicit x/y offsets that were set on the child
child.y = baseY 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 has children, recursively layout them
if #child.children > 0 then if #child.children > 0 then