Thread: frame sizes
View Single Post
Old 10-21-05, 07:50 AM   #1
Ego
A Deviate Faerie Dragon
 
Ego's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 15
frame sizes

I have a frame in a mod I'm working on. It's set to parent="UIParent"
and has the size set to relative with x="1" and y="1". When I query
GetWidth() and GetHeight() on my frame, it returns 1280 plus a small
fraction for both. Doing the same for UIParent I get the expected
1024 x 768 which is what my current resolution is set to.

Is there a simple way to make sure my frame matches the size and position
of it's parent (in this case UIParent, or possibly WorldFrame)?
Ego is offline   Reply With Quote