From 4344d93c5bfba17ab0aea2b0f7c4a4c04da9ea5a Mon Sep 17 00:00:00 2001 From: PProvost-35627 Date: Fri, 3 Apr 2009 15:17:00 +0000 Subject: [PATCH] Fixed a bug with scrolling offset on the config screen --- NinjaPanel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NinjaPanel.lua b/NinjaPanel.lua index 01c56f3..a1f5772 100644 --- a/NinjaPanel.lua +++ b/NinjaPanel.lua @@ -767,7 +767,7 @@ frame:SetScript("OnShow", function(frame) local entry = NinjaPanel.plugins[name] local opts = NinjaPanelDB.plugins[name] local enabled = not opts.disabled - local color = statusColors[enabled] + local color = statusColors[enabled or false] row.check:SetChecked(enabled) row.title:SetText(name) @@ -796,7 +796,7 @@ frame:SetScript("OnShow", function(frame) local f = scrollbar:GetScript("OnValueChanged") scrollbar:SetScript("OnValueChanged", function(self, value, ...) - offset = value + offset = math.floor(value) Refresh() return f(self, value, ...) end) -- 1.7.9.5