Skip to content

Commit

Permalink
fix(ui): world event menu wasn't displayed properly in Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
exochron committed May 10, 2024
1 parent 88f895e commit 387e27e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion UI/FilterMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,13 @@ end
local function AddOrderedFilterButtons(order, database, settings, resetSettings, level)
for _, index in ipairs(order) do
if database[index] then
UIDropDownMenu_AddButton(CreateFilterInfo(L[index], index, settings, resetSettings), level)
local button = UIDropDownMenu_AddButton(CreateFilterInfo(L[index], index, settings, resetSettings), level)
if WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE then
-- somehow some menu items don't get displayed properly.
local a,_,c,d,e = button:GetPoint(1)
button:SetParent(_G["DropDownList"..level])
button:SetPoint(a, _G["DropDownList"..level], c,d,e)
end
end
end
end
Expand Down

0 comments on commit 387e27e

Please sign in to comment.