mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
move reflow to widgets
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user