API Region GetSize

Returns the dimensions of a region using the coordinate system (scale) of that region.

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

Returns

 * width : Number - Width of the region in its own coordinate space (scaling dependent)
 * height : Number - Height of the region in its own coordinate space (scaling dependent)

Example
myAddonOptionsParent = myAddonOptions:GetParent; myAddonOptions:SetHeight(myAddonOptionsParent:GetHeight / 2);


 * Result : The frame named "myAddonOptions" would be set to half the height of its parent frame.