Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Wowpedia
Advertisement

Sets the width and height of the region.

ScriptRegionResizing:SetSize(width, height)
ScriptRegionResizing:SetWidth(width)
ScriptRegionResizing:SetHeight(height)

Arguments[]

width
number - The width of the region.
height
number - 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)

API ScriptRegionResizing SetSize 01


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[]

Advertisement