From 6cba6bafba907dee86d0ea2813334e311ee5a0c4 Mon Sep 17 00:00:00 2001 From: Crum Date: Fri, 5 Jan 2018 10:13:29 -0600 Subject: [PATCH] update Export --- 2/3/4/5/6/7/ElvUI_Config/Core.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/2/3/4/5/6/7/ElvUI_Config/Core.lua b/2/3/4/5/6/7/ElvUI_Config/Core.lua index d18828f..ee0ec1c 100644 --- a/2/3/4/5/6/7/ElvUI_Config/Core.lua +++ b/2/3/4/5/6/7/ElvUI_Config/Core.lua @@ -282,9 +282,12 @@ local function ExportImport_Open(mode) frame:AddChild(exportButton) box.editBox:SetScript("OnChar", function() box:SetText(exportString) box.editBox:HighlightText() end) - box.editBox:SetScript("OnTextChanged", function(self) - box:SetText(exportString) - box.editBox:HighlightText() + box.editBox:SetScript("OnTextChanged", function() + if this then + box:SetText(exportString) + box.editBox:HighlightText() + end + box.scrollFrame:UpdateScrollChildRect() end) elseif(mode == "import") then frame:SetTitle(L["Import Profile"])