diff --git a/FlexLove.lua b/FlexLove.lua index 02ea9ed..752e874 100644 --- a/FlexLove.lua +++ b/FlexLove.lua @@ -1275,6 +1275,11 @@ function Element.new(props) 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 ------ if props.parent == nil then table.insert(Gui.topElements, self) @@ -1538,11 +1543,6 @@ function Element.new(props) 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 ---animation