This commit is contained in:
Bunny67
2017-12-20 00:51:17 +03:00
parent 3945024d6c
commit 19e3aadfa3
+1 -4
View File
@@ -264,7 +264,7 @@ function E:CreateMoverPopup()
end) end)
local align = CreateFrame("EditBox", f:GetName().."EditBox", f, "InputBoxTemplate") local align = CreateFrame("EditBox", f:GetName().."EditBox", f, "InputBoxTemplate")
align:SetWidth(24) align:SetWidth(32)
align:SetHeight(17) align:SetHeight(17)
align:SetAutoFocus(false) align:SetAutoFocus(false)
align:SetScript("OnEscapePressed", function() align:SetScript("OnEscapePressed", function()
@@ -288,7 +288,6 @@ function E:CreateMoverPopup()
align:SetScript("OnEditFocusLost", function() align:SetScript("OnEditFocusLost", function()
this:SetText(E.db.gridSize) this:SetText(E.db.gridSize)
end) end)
align:SetScript("OnEditFocusGained", align.HighlightText)
align:SetScript("OnShow", function() align:SetScript("OnShow", function()
this:ClearFocus() this:ClearFocus()
this:SetText(E.db.gridSize) this:SetText(E.db.gridSize)
@@ -371,7 +370,6 @@ function E:CreateMoverPopup()
xOffset:SetScript("OnEditFocusLost", function() xOffset:SetScript("OnEditFocusLost", function()
this:SetText(E:Round(xOffset.currentValue)) this:SetText(E:Round(xOffset.currentValue))
end) end)
xOffset:SetScript("OnEditFocusGained", xOffset.HighlightText)
xOffset:SetScript("OnShow", function() xOffset:SetScript("OnShow", function()
this:ClearFocus() this:ClearFocus()
this:SetText(E:Round(xOffset.currentValue)) this:SetText(E:Round(xOffset.currentValue))
@@ -406,7 +404,6 @@ function E:CreateMoverPopup()
yOffset:SetScript("OnEditFocusLost", function() yOffset:SetScript("OnEditFocusLost", function()
this:SetText(E:Round(yOffset.currentValue)) this:SetText(E:Round(yOffset.currentValue))
end) end)
yOffset:SetScript("OnEditFocusGained", yOffset.HighlightText)
yOffset:SetScript("OnShow", function() yOffset:SetScript("OnShow", function()
this:ClearFocus() this:ClearFocus()
this:SetText(E:Round(yOffset.currentValue)) this:SetText(E:Round(yOffset.currentValue))