Fixed a bug with scrolling offset on the config screen
PProvost-35627 [04-03-09 - 15:17]
Fixed a bug with scrolling offset on the config screen
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)