Page 1 of 1

CELayoutEditor : Set the Parent Size according the Child

Posted: Mon Apr 06, 2009 12:03
by xabila
Hi,
With all my GUI, lots of time i have to reduce the parent size according to the child size/aspect.
But Right now ( or i'm missing something, an option maybe) reducing the parent size implies reducing the child.

Is there a way to do (avoid) that ?
Thanks

Posted: Mon Apr 06, 2009 19:08
by scriptkid
Hi,

This issue isn't easy to work around, because it's one of Cegui's by nature behaviour aspects.

However since you are not the first to mention this problem, it's certainly something for which i am considering a nice solution. But it's pretty tough: when resizing a parent, each direct window's position should be stored, when it's a relative position. Then, after the resize of the parent, the stored values should be re-calculated, but now with regards to the new parent's size.

Okay okay, it's not that hard, but i need to see how this would fit within the current code base. Maybe with an internal temp selection or so.

Posted: Mon Apr 06, 2009 20:45
by xabila
Could be SO NICE ;)
Thanks