Fix columnlist autoscroll functionality

This commit is contained in:
Kenny Shields 2015-03-30 10:20:51 -04:00
parent 328cd9a642
commit d4ab2ea608

View File

@ -256,7 +256,7 @@ function newobject:CalculateSize()
local newbar = loveframes.objects["scrollbody"]:new(self, "vertical")
table.insert(self.internals, newbar)
self.vbar = true
newbar.autoscroll = parent.autoscroll
newbar:GetScrollBar().autoscroll = parent.autoscroll
self.itemwidth = self.itemwidth + newbar.width
self.extrawidth = self.itemwidth - width
end
@ -283,7 +283,6 @@ function newobject:CalculateSize()
local newbar = loveframes.objects["scrollbody"]:new(self, "horizontal")
table.insert(self.internals, newbar)
self.hbar = true
newbar.autoscroll = parent.autoscroll
self.itemheight = self.itemheight + newbar.height
self.extraheight = self.itemheight - height
end