Wowpedia
Advertisement
Links

Returns the size of a Region.

width = region:GetWidth();
height = region:GetHeight();
width, height = region:GetSize();

Returns

width 
number - Width in units affected by scaling.
height 
number - Height in units affected by scaling.

Example

myAddonOptionsParent = myAddonOptions:GetParent();
myAddonOptions:SetHeight(myAddonOptionsParent:GetHeight() / 2);
Result 
The frame named "myAddonOptions" is half the height of its parent frame.

Details

See Also

Advertisement