The tabs object will only update its active tab

This commit is contained in:
Kenny Shields 2014-01-20 17:21:21 -05:00
parent 8fddb8635a
commit 63e6f2fdb7

View File

@ -103,9 +103,9 @@ function newobject:update(dt)
end
end
for k, v in ipairs(children) do
v:update(dt)
v:SetPos(padding, tabheight + padding)
if #self.children > 0 then
self.children[self.tab]:update(dt)
self.children[self.tab]:SetPos(padding, tabheight + padding)
end
if update then