The following should show a horizontal array of buttons, but for some reason the height ends up being zero. I think RowLayout (horizontal) may have a bug so that it only renders right (nonzero height) if you manually set the height? Is this right or am I missing something?

HTML Code:
public class HorizontalButtonBar extends LayoutContainer {
 protected void onAfterLayout() {
  System.out.println("Debug Height = "+getHeight());
 public HorizontalButtonBar(Button[] buttons) {
  super(new RowLayout(Orientation.HORIZONTAL));
     for (Button button : buttons) {   
      add(button, new RowData(-1,-1, new Margins(10,10,10,10)));