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
|
||||
end
|
||||
|
||||
return a < b
|
||||
if a and b then
|
||||
return a < b
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
function UpdateFrameStack(tooltip, showHidden)
|
||||
@@ -109,7 +113,7 @@ function UpdateFrameStack(tooltip, showHidden)
|
||||
f, nf = nf, EnumerateFrames(nf)
|
||||
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
|
||||
Fb = Fb or -1
|
||||
Fr = Fl + (Fr or -1)
|
||||
|
||||
Reference in New Issue
Block a user