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

@@ -144,10 +144,7 @@ end
function Input:handleReshape (width, height)
local layout = self.layout
local root = layout.root
for i, widget in ipairs(layout.widgets) do
widget.position = {}
widget.dimensions = {}
end
layout.root:reflow()
root.width = width
root.height = height
Event.Reshape:emit(root, {