Make sure the ExpandButtonFrame is large enough to hold the localized word for "All".
James D. Callahan III [07-11-10 - 06:38]
Make sure the ExpandButtonFrame is large enough to hold the localized word for "All".
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)