Relative size
You can do something similar to CSS, or resize a widget according to the space available in the parent in which it is hosted? For example, create a button with half widht (50%) of the frame in which it is contained?
|
Code:
frame:SetWidth(floor((frame:GetParent():GetWidth() / 2) + 0.5)) http://wowpedia.org/API_Region_SetPoint For example: Code:
local parent = frame:GetParent() Of course, you don't need the GetParent() calls in these examples if you're creating the frame yourself. |
All times are GMT -6. The time now is 07:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI