From 010eb932d421e0fc00a91b282b1723a01c92daf1 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 22 Nov 2016 22:20:26 +0100 Subject: [PATCH] skin: fix auctionhouse button placement --- modules/skin.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/skin.lua b/modules/skin.lua index 57349e77..5de554de 100644 --- a/modules/skin.lua +++ b/modules/skin.lua @@ -93,4 +93,22 @@ pfUI.utils:CreateBackdrop(TicketStatusFrame) end end end + + -- due to the fontsize, the auctionhouse dropdown menu is misplaced. + -- This hackfix rearranges it, by setting the width of it, as soon as + -- the auctionhouse window is ready to get hooked. + local pfAuctionHouseFix = CreateFrame("Frame", nil) + pfAuctionHouseFix:RegisterEvent("AUCTION_HOUSE_SHOW") + pfAuctionHouseFix:RegisterEvent("ADDON_LOADED") + pfAuctionHouseFix:SetScript("OnEvent", function () + if not pfAuctionFrame_OnShow and AuctionFrame_OnShow then + pfAuctionFrame_OnShow = AuctionFrame_OnShow + function AuctionFrame_OnShow () + pfAuctionFrame_OnShow() + BrowseLevelText:SetWidth(70) + end + pfAuctionHouseFix:UnregisterAllEvents() + end + end) + end)