move reflow to widgets

This commit is contained in:
airstruck
2015-10-24 15:32:48 -04:00
parent cc0ca8387b
commit 93f0108242
3 changed files with 3 additions and 14 deletions

View File

@@ -232,12 +232,12 @@ function Widget:getAncestors (includeSelf)
end
end
-- Reflow the widget. Call this after changing position/dimensions.
function Widget:reflow ()
self.position = {}
self.dimensions = {}
for i, widget in ipairs(self.children) do
widget.position = {}
widget.dimensions = {}
widget:reflow()
end
end