From 30b03950ff31d6cd0038f370a82621f68af6b423 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 19 Apr 2010 05:33:57 -0400 Subject: [PATCH] Moved the SearchBox properties above its scripts. --- Frame.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Frame.lua b/Frame.lua index 3aa9e22..0c8a4a9 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1614,6 +1614,17 @@ ARL_ClearButton:SetScript("OnClick", end) local SearchBox = CreateFrame("EditBox", nil, MainPanel, "InputBoxTemplate") + +SearchBox:EnableMouse(true) +SearchBox:SetAutoFocus(false) +SearchBox:SetFontObject(ChatFontNormal) +SearchBox:SetWidth(110) +SearchBox:SetHeight(12) +SearchBox:SetPoint("RIGHT", ARL_ClearButton, "LEFT", 3, -1) +SearchBox:Show() + +MainPanel.search_editbox = SearchBox + SearchBox:SetText(_G.SEARCH) SearchBox:SetHistoryLines(10) @@ -1712,16 +1723,6 @@ do end) end -- do -SearchBox:EnableMouse(true) -SearchBox:SetAutoFocus(false) -SearchBox:SetFontObject(ChatFontNormal) -SearchBox:SetWidth(130) -SearchBox:SetHeight(12) -SearchBox:SetPoint("RIGHT", ARL_ClearButton, "LEFT", 3, -1) -SearchBox:Show() - -MainPanel.search_editbox = SearchBox - ------------------------------------------------------------------------------- -- Create the X-close button, and set its scripts. ------------------------------------------------------------------------------- -- 1.7.9.5