merge window into layout

This commit is contained in:
airstruck
2015-10-24 15:10:22 -04:00
parent e5124b670b
commit cc0ca8387b
8 changed files with 81 additions and 114 deletions

View File

@@ -232,8 +232,13 @@ function Widget:getAncestors (includeSelf)
end
end
function Widget:update ()
self.layout:update()
function Widget:reflow ()
self.position = {}
self.dimensions = {}
for i, widget in ipairs(self.children) do
widget.position = {}
widget.dimensions = {}
end
end
Event.injectBinders(Widget)