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