Commit 8d71ca40 authored by mikk's avatar mikk
Browse files

Fix for blizzard slider bug: If you SetMinMax after SetValue, it wouldn't move...

Fix for blizzard slider bug: If you SetMinMax after SetValue, it wouldn't move the draghandle like it should. So now, if someone calls SetMinMax, we re-call SetValue.

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@837 5debad98-a965-4143-8383-f471b3509dcf
parent b8416771
......@@ -5,7 +5,7 @@ local AceGUI = LibStub("AceGUI-3.0")
--------------------------
do
local Type = "Slider"
local Version = 7
local Version = 8
local function OnAcquire(self)
self:SetWidth(200)
......@@ -128,6 +128,9 @@ do
frame:SetMinMaxValues(min or 0,max or 100)
UpdateLabels(self)
frame:SetValueStep(step or 1)
if self.value then
frame:SetValue(self.value)
end
frame.setup = nil
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment