Mercurial > wow > breuesk
changeset 90:dcbe1f04bb31
Bugfix
author | John@Yosemite-PC |
---|---|
date | Mon, 16 Apr 2012 07:06:27 -0400 |
parents | b89558d3e833 |
children | 5ade79caeece |
files | SelectorList.lua |
diffstat | 1 files changed, 17 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/SelectorList.lua Mon Apr 16 07:06:19 2012 -0400 +++ b/SelectorList.lua Mon Apr 16 07:06:27 2012 -0400 @@ -184,7 +184,6 @@ end - local methods = { ["OnAcquire"] = function(self) @@ -221,22 +220,22 @@ self.localstatus.enableInteractive = value end, - ["ShowScroll"] = function(self, show) -- todo: not a user function. hide. - self.showscroll = show - if show then - self.scrollbar:Show() - if self.buttons[1] then - self.buttons[1]:SetPoint("TOPRIGHT", self.slframe,"TOPRIGHT",-22,-10) - end - else - self.scrollbar:Hide() - if self.buttons[1] then - self.buttons[1]:SetPoint("TOPRIGHT", self.slframe,"TOPRIGHT",0,-10) - end - end - end, + ["Refresh"] = function(self) + local ShowScroll = function(show) + self.showscroll = show + if show then + self.scrollbar:Show() + if self.buttons[1] then + self.buttons[1]:SetPoint("TOPRIGHT", self.slframe,"TOPRIGHT",-22,-10) + end + else + self.scrollbar:Hide() + if self.buttons[1] then + self.buttons[1]:SetPoint("TOPRIGHT", self.slframe,"TOPRIGHT",0,-10) + end + end + end - ["Refresh"] = function(self) local f = self.slframe local buttons = self.buttons local lines = self.lines @@ -250,10 +249,10 @@ if numlines <= maxlines then status.scrollvalue = 0 - self:ShowScroll(false) + ShowScroll(false) first, last = 1, numlines else - self:ShowScroll(true) + ShowScroll(true) self.noupdate = true self.scrollbar:SetMinMaxValues(0, numlines - maxlines) if numlines - status.scrollvalue < maxlines then