![]() |
The API is no longer being updated here until further notice. |
Positions the region the same as another region.
ScriptRegionResizing:SetAllPoints([relativeTo, doResize])
Arguments[]
- relativeTo
- ScriptRegion|string? - The reference or name of a region.
- if omitted, anchors to the parent region if applicable, otherwise to the screen dimensions.
- If explicitly passed
nil
, anchors relative to the screen dimensions.
- doResize
- boolean?
= true
Details[]
- Only the TOPLEFT and BOTTOMRIGHT points will be set.
Example[]
local f = CreateFrame("Frame")
f:SetAllPoints(UIParent)
is equivalent to:
local f = CreateFrame("Frame")
f:ClearAllPoints() -- unsets any existing points
f:SetPoint("TOPLEFT", UIParent)
f:SetPoint("BOTTOMRIGHT", UIParent)
Patch changes[]
Patch 2.2.0 (2007-09-25): Coordinates are now relative to the closest anchor point.
Patch 1.10.0 (2006-03-28): Updated.