adjust children for parent padding and margin

This commit is contained in:
airstruck
2015-10-25 16:01:41 -04:00
parent 8f604fb79d
commit 995825b9b3
11 changed files with 108 additions and 84 deletions

View File

@@ -51,6 +51,7 @@ function Layout:show ()
love.window.setTitle(title)
end
self:manageInput(self.input)
root:reflow()
end
function Layout:hide ()
@@ -90,7 +91,7 @@ end
-- event stuff
function Layout:hook (key, method)
self.hooks[#self.hooks + 1] = Hooker.hook(key, method)
self.hooks[#self.hooks + 1] = Hooker.hook(love, key, method)
end
function Layout:unhook ()