diff --git a/Leatrix_InputScrollFrameTemplate.xml b/Leatrix_InputScrollFrameTemplate.xml index d46274f..b127c18 100644 --- a/Leatrix_InputScrollFrameTemplate.xml +++ b/Leatrix_InputScrollFrameTemplate.xml @@ -1,49 +1,59 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 66810dd..007e93c 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -13258,7 +13258,8 @@ -- Create title bar - local titleFrame = CreateFrame("ScrollFrame", nil, editFrame, "Leatrix_InputScrollFrameTemplate") + local titleFrame = CreateFrame("ScrollFrame", "LeatrixTitleFrame", editFrame, "Leatrix_InputScrollFrameTemplate") + if titleFrame.CharCount then titleFrame.CharCount:Hide() end titleFrame:ClearAllPoints() titleFrame:SetPoint("TOP", 0, 40) titleFrame:SetSize(600, 36) @@ -13338,6 +13339,11 @@ scrollFrame:SetPoint("BOTTOMRIGHT", editFrame, "BOTTOMRIGHT", -34, 8) scrollFrame:EnableMouseWheel(true) + -- Create CharCount font string to avoid lua error for it not existing on WoW Sirus + scrollFrame.CharCount = scrollFrame:CreateFontString(nil, "OVERLAY", "GameFontDisableLarge") + scrollFrame.CharCount:Hide() + + -- Set the existing edit box as the scroll child scrollFrame:SetScrollChild(editBox)