API ScriptRegionResizing SetSize

Sets the width and height of the region.
 ScriptRegionResizing:SetSize(width, height)
 ScriptRegionResizing:SetWidth(width)
 ScriptRegionResizing:SetHeight(height)
==Arguments==
:;width: - The width of the region.
:;height: - The height of the region.
==Example==
Creates a frame with a width of 100 and height of 50.
local f = CreateFrame("Frame", nil, nil, "BackdropTemplate")
f:SetPoint("CENTER")
f:SetSize(100, 50)
f:SetBackdrop(BACKDROP_TUTORIAL_16_16)
If the width/height is inferred from anchor points, then setting it has no effect.
local f = CreateFrame("Frame", nil, UIParent)
f:SetAllPoints()
print(f:GetSize()) -- 2133.3334960938, 1200
f:SetSize(100, 100)
print(f:GetSize()) -- 2133.3334960938, 1200
==See also==
*