recentChat: trying to fix scrollbar error on sirus wow

This commit is contained in:
Sattva
2025-04-14 23:50:30 +03:00
parent 646df4c090
commit c2dfbe9b91
2 changed files with 61 additions and 45 deletions
+7 -1
View File
@@ -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)