mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix FrameStack sort error
instead of GetRect use GetLeft, GetBottom, GetRight, GetTop
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user