mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update AceGUIWidget-MultiLineEditBox
This commit is contained in:
@@ -242,7 +242,9 @@ local function OnReceiveDrag() --
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function OnSizeChanged() -- ScrollFrame
|
local function OnSizeChanged() -- ScrollFrame
|
||||||
this.obj.editBox:SetWidth(this.obj.editBox:GetWidth())
|
this:UpdateScrollChildRect()
|
||||||
|
this:SetVerticalScroll(this:GetHeight())
|
||||||
|
this.obj.editBox:SetWidth(arg1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnTextChanged() -- EditBox
|
local function OnTextChanged() -- EditBox
|
||||||
@@ -268,6 +270,10 @@ end
|
|||||||
local function OnVerticalScroll() -- ScrollFrame
|
local function OnVerticalScroll() -- ScrollFrame
|
||||||
local editBox = this.obj.editBox
|
local editBox = this.obj.editBox
|
||||||
editBox:SetHitRectInsets(0, 0, arg1, editBox:GetHeight() - arg1 - this:GetHeight())
|
editBox:SetHitRectInsets(0, 0, arg1, editBox:GetHeight() - arg1 - this:GetHeight())
|
||||||
|
|
||||||
|
this.obj.scrollFrame:SetScrollChild(editBox)
|
||||||
|
editBox:SetPoint("TOPLEFT",0,arg1)
|
||||||
|
editBox:SetPoint("TOPRIGHT",0,arg1)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnShowFocus()
|
local function OnShowFocus()
|
||||||
|
|||||||
Reference in New Issue
Block a user