fix FrameStack sort error

instead of GetRect use GetLeft, GetBottom, GetRight, GetTop
This commit is contained in:
Pinya
2017-12-14 20:43:50 +03:00
parent d62ad1a11c
commit ab23ec296d
+5 -1
View File
@@ -86,7 +86,11 @@ local function FrameStackSort(b, a)
return return
end end
if a and b then
return a < b return a < b
else
return
end
end end
function UpdateFrameStack(tooltip, showHidden) function UpdateFrameStack(tooltip, showHidden)
@@ -109,7 +113,7 @@ function UpdateFrameStack(tooltip, showHidden)
f, nf = nf, EnumerateFrames(nf) f, nf = nf, EnumerateFrames(nf)
local es = f:GetEffectiveScale() or 1 local es = f:GetEffectiveScale() or 1
local Fl, Fb, Fr, Ft = f:GetRect() local Fl, Fb, Fr, Ft = f:GetLeft(), f:GetBottom(), f:GetRight(), f:GetTop()
Fl = Fl or -1 Fl = Fl or -1
Fb = Fb or -1 Fb = Fb or -1
Fr = Fl + (Fr or -1) Fr = Fl + (Fr or -1)