quick fix

This commit is contained in:
Michael Freno
2025-10-10 22:28:35 -04:00
parent da3581785f
commit 7aed6bef69

View File

@@ -1275,6 +1275,11 @@ function Element.new(props)
end end
end end
-- Grid item properties (set early so they're available when addChild is called)
self.gridColumn = props.gridColumn
self.gridRow = props.gridRow
self.gridArea = props.gridArea
------ add hereditary ------ ------ add hereditary ------
if props.parent == nil then if props.parent == nil then
table.insert(Gui.topElements, self) table.insert(Gui.topElements, self)
@@ -1538,11 +1543,6 @@ function Element.new(props)
end end
end end
-- Grid item properties (can be set on any element that's a child of a grid)
self.gridColumn = props.gridColumn
self.gridRow = props.gridRow
self.gridArea = props.gridArea
self.alignSelf = props.alignSelf or AlignSelf.AUTO self.alignSelf = props.alignSelf or AlignSelf.AUTO
---animation ---animation