simplify style system

This commit is contained in:
airstruck
2015-12-07 04:22:36 -05:00
parent 367535ad33
commit 69703fdce0
41 changed files with 2227 additions and 292 deletions

View File

@@ -213,12 +213,9 @@ end
function Input:handleReshape (layout, width, height)
local root = layout.root
if root.float then
root:reshape()
else
root.width = width
root.height = height
end
root:reshape()
root.dimensions.width = width
root.dimensions.height = height
Event.Reshape:emit(layout, { target = layout })
end
@@ -228,7 +225,7 @@ function Input:handleWheelMove (layout, x, y)
local mx, my = Backend.getMousePosition()
local widget = layout:getWidgetAt(mx, my)
local hit = true
if not widget then
hit = nil
widget = layout.root