View Single Post
07-14-12, 11:38 PM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Gregity View Post
Actually I was hoping resizing any of them will cause the parent to resize.
You could do that too, but you would have to do it manually.

Alternatively, if C is positioned relative to B, and B is positioned relative to A, then you could position A relative to the UIParent, and then position the parent frame relative to the TOPLEFT of A and the BOTTOMRIGHT of C.

Originally Posted by Gregity View Post
However if having something get hidden will break the works then means that I have to have a resize function so I can just calc the size based upon that (and reset parents and whatnot).
Hiding something will not break anything, as long as your frames are correctly parented. In this example, A, B, and C should all be direct children of F -- not children of each other. However, unless you manually reposition C after you hide B, you will have an empty space between A and B.

Honestly, though, all of this vague "A, B, and C" stuff makes it really hard to give you good suggestions and code. Why don't you just describe what you actually want to do?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote