Skip to content

Commit b699b7e

Browse files
committed
remove the note, reporting isnt tainted
1 parent db28ec2 commit b699b7e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ElvUI/Core/Modules/Skins/Skins.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,11 @@ do
797797
S:SetBackdropBorderColor(overlay, 'OnLeave')
798798
end
799799

800-
function S:OverlayButton(button, name, text, textLayer, level, strata)
800+
function S:OverlayButton(button, name, width, height, text, textLayer, level, strata)
801801
if overlays[button] then return end -- already exists
802802

803-
local width, height = button:GetSize()
804803
local overlay = CreateFrame('Frame', 'ElvUI_OverlayButton_'..name, E.UIParent)
805-
overlay:Size(width, height)
804+
overlay:Size(width or 120, height or 22) -- dont use GetSize it can taint the owner
806805
overlay:SetTemplate(nil, true)
807806
overlay:SetPoint(button:GetPoint())
808807
overlay:SetFrameLevel(level or 10)

ElvUI/Mainline/Modules/Skins/LFG.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,7 @@ function S:LookingForGroupFrames()
433433
S:HandleButton(LFGListFrame.SearchPanel.BackButton)
434434
S:HandleButton(LFGListFrame.SearchPanel.SignUpButton)
435435

436-
-- Monitor this button, this seems NOT to taint. But who knows
437-
S:OverlayButton(LFGListFrame.SearchPanel.ScrollBox.StartGroupButton, 'StartGroupButton', _G.START_A_GROUP, nil, nil, 'HIGH')
436+
S:OverlayButton(LFGListFrame.SearchPanel.ScrollBox.StartGroupButton, 'StartGroupButton', 135, 22, _G.START_A_GROUP, nil, nil, 'HIGH')
438437

439438
LFGListFrame.SearchPanel.BackButton:ClearAllPoints()
440439
LFGListFrame.SearchPanel.BackButton:Point('BOTTOMLEFT', -1, 3)

0 commit comments

Comments
 (0)