Use List.children, not List.elements

This commit is contained in:
Gabriel Tofvesson 2024-10-04 13:41:48 +02:00
parent 1d29de8ace
commit 1482437161

View File

@ -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)