GroupComponent children and setbounds?


#1

Hi,

For children of a GroupComponent , setbounds coordinates are relative to the entire applicaiton window, not the parent GroupComponent . That seems to contradict the setBounds documentation.

Thanks

Patrick


#2

Erm, no… A groupcomponent is no different to any other component. A component’s bounds are relative to its parent’s top-left, regardless of what kind of component it is. If your comp’s position isn’t relative to a groupcomponent, then it clearly isn’t its parent!


#3

Yes you are correct of course , What confused me for a while was that if I use setbounds on a textbutton with y=0, it sits a bit higher(outside) the groupComponent border. I expected the top of the button to be flush with the parent’s top border.

Patrick