test AceGUIWidget-MultiLineEditBox

This commit is contained in:
Crum
2018-06-22 18:31:20 -05:00
parent 446df02185
commit eb4ad4697c
2 changed files with 3 additions and 4 deletions
+3 -1
View File
@@ -285,9 +285,11 @@ local function ExportImport_Open(mode)
box.editBox:SetScript("OnTextChanged", function() box.editBox:SetScript("OnTextChanged", function()
if this then if this then
box:SetText(exportString) box:SetText(exportString)
box.editBox:HighlightText() this:HighlightText()
end end
box.scrollFrame:UpdateScrollChildRect() box.scrollFrame:UpdateScrollChildRect()
box.scrollFrame:SetVerticalScroll(box.scrollFrame:GetVerticalScrollRange())
end) end)
elseif mode == "import" then elseif mode == "import" then
frame:SetTitle(L["Import Profile"]) frame:SetTitle(L["Import Profile"])
@@ -217,9 +217,6 @@ local function OnSizeChanged() -- ScrollFrame
end end
local function OnTextChanged() -- EditBox local function OnTextChanged() -- EditBox
this:UpdateScrollChildRect()
this:UpdateScrollState()
this:SetVerticalScroll(this:GetHeight())
local self = this.obj local self = this.obj
local value = this:GetText() local value = this:GetText()
if tostring(value) ~= tostring(self.lasttext) then if tostring(value) ~= tostring(self.lasttext) then