diff --git a/gfx/list.lua b/gfx/list.lua index 82ac390..0e74211 100644 --- a/gfx/list.lua +++ b/gfx/list.lua @@ -94,11 +94,11 @@ local function maxOrSum(shouldSum, values, getValue) end function List:getHeight() - return maxOrSum(self:isVertical(), self.elements, function(e) return e:getHeight() end) + return maxOrSum(self:isVertical(), self.children, function(e) return e:getHeight() end) end function List:getWidth() - return maxOrSum(self:isHorizontal(), self.elements, function(e) return e:getWidth() end) + return maxOrSum(self:isHorizontal(), self.children, function(e) return e:getWidth() end) end function List:findById(id)