From 2b4ed1bd76da7ff9f091347b630ea6653a653247 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Wed, 16 May 2012 06:14:46 -0400 Subject: [PATCH] Fixed list:SetAutoScroll() not working --- changelog.txt | 5 +++++ init.lua | 2 +- objects/list.lua | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 60ea1aa..1da68ae 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +================================================ +Version 0.9.1.4 - Alpha (May 16 - 2012) +================================================ +[FIXED] list:SetAutoScroll() not working + ================================================ Version 0.9.1.3 - Alpha (May 14 - 2012) ================================================ diff --git a/init.lua b/init.lua index 8fba353..fadbbf9 100644 --- a/init.lua +++ b/init.lua @@ -9,7 +9,7 @@ loveframes = {} -- library info loveframes.info = {} loveframes.info.author = "Nikolai Resokav" -loveframes.info.version = "0.9.1.3" +loveframes.info.version = "0.9.1.4" loveframes.info.stage = "Alpha" -- library configurations diff --git a/objects/list.lua b/objects/list.lua index 57f17ce..2509039 100644 --- a/objects/list.lua +++ b/objects/list.lua @@ -260,9 +260,9 @@ function list:CalculateSize() if vbar == false then local scrollbar = scrollbody:new(self, display) - scrollbar.autoscroll = self.autoscroll table.insert(self.internals, scrollbar) self.vbar = true + self:GetScrollBar().autoscroll = true end else @@ -289,9 +289,9 @@ function list:CalculateSize() if hbar == false then local scrollbar = scrollbody:new(self, display) - scrollbar.autoscroll = self.autoscroll table.insert(self.internals, scrollbar) self.hbar = true + self:GetScrollBar().autoscroll = true end else