Hello,
I have just added 2 new attributes for all the controls: xkeepratio and ykeepratio. They are false by default (which keeps the current behaviour), but when set to "true", the behaviour of resizing changes: the size of the control is constant (horizontally if xkeepratio is true and vertically if ykeepratio is true), and the position of the control inside the layout is computed in such a way that the ratio between the space to the left on the control and the space to its right is constant (for xkeepratio). Said more clearly: if initially there is twice as much space on the left as on the right (the ratio is then 2), this will remain constant when resizing the window.
In particular, a control initially centered will remain centered.
This is more powerful than a mere "center" attribute (which was requested several times, in particular by @$im in this thread), i just hope this isn't too complex to understand
The feature will be available in the next nightly build, and the documentation will be updated by tomorrow as well (it is refreshed every night).