From 5a81dfa2b00b496f07f98ec8baa1d1e15f6da6ee Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 11 Jul 2010 02:38:03 -0400 Subject: [PATCH] Make sure the ExpandButtonFrame is large enough to hold the localized word for "All". --- Frame.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index bb87bfe..6b281c9 100644 --- a/Frame.lua +++ b/Frame.lua @@ -680,7 +680,7 @@ end -- do -- Create the expand button and set its scripts. ------------------------------------------------------------------------------- local ExpandButtonFrame = CreateFrame("Frame", nil, MainPanel) -ExpandButtonFrame:SetWidth(45) + ExpandButtonFrame:SetHeight(20) ExpandButtonFrame:SetPoint("TOPLEFT", SearchBox, "BOTTOMLEFT", -12, -5) @@ -704,6 +704,9 @@ ExpandButtonFrame.middle:SetTexture("Interface\\QuestFrame\\UI-QuestLogSortTab-M local ExpandButton = GenericCreateButton(nil, MainPanel, 16, 16, "GameFontNormalSmall", _G.ALL, "LEFT", L["EXPANDALL_DESC"], 2) +-- Make sure the button frame is large enough to hold the localized word for "All" +ExpandButtonFrame:SetWidth(27 + ExpandButton:GetFontString():GetStringWidth()) + MainPanel.expand_button = ExpandButton ExpandButton:SetPoint("LEFT", ExpandButtonFrame.left, "RIGHT", -3, -3) -- 1.7.9.5