06-07-2011 09:52 AM
06-07-2011 10:00 AM
It is obvious that VerticalFieldManager cannot respect vertical alignment bits just as HorizontalFieldManager ignores horizontal ones - so you are either stuck with two containers (the inner one will USE_ALL_... - height for horizontal manager, width for the vertical one), or need to use some custom layout. Which is an extremely simple thing to do (and a very educational, too), so, like simon_hain, I highly recommend it.
If you are stuck and don't know how to do that, search this forum for CenteringManager and ignore the background painting part for now - you can get back to it later on.
06-11-2011 03:17 AM
I gava "kudos" to everybody that participated in that discussion. Thanks everybody !
Not yet sure about which comment I should accept as answer ...
07-08-2011 05:20 AM - edited 07-08-2011 05:41 AM
try to ovverride add method :
public void add(Field field)
field.setMargin((fieldHeight - field.getPreferredHeight())/2, 0, 0, 0);
of course you must extend your custom manager from Horizontal or Vertical FieldManager.