Quantcast

Moved the SearchBox properties above its scripts.

James D. Callahan III [04-19-10 - 09:33]
Moved the SearchBox properties above its scripts.
Filename
Frame.lua
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.
 -------------------------------------------------------------------------------