Gets the height and width, respectively, of an object.
dimension = MyObject:GetWidth(); dimension = MyObject:GetHeight();
myAddonOptionsParent = myAddonOptions:GetParent(); myAddonOptions:SetWidth(myAddonOptionsParent:GetWidth() / 2);
- The frame named "myAddonOptions" would be set to half the width of its parent frame.
Note that even though FontString has GetWidth()/GetHeight() methods, they behave very differently and have potentially very little to do with the displayed dimension.