mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Fix columnlist autoscroll functionality
This commit is contained in:
parent
328cd9a642
commit
d4ab2ea608
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user