public UISize computePackedSize(UILayoutContainer container) { float minimumHeight = 0; for (UIControl control : container.getChildren()) { minimumHeight = Math.max(minimumHeight, control.getPackedSize().getHeight()); } return new UISize(0, minimumHeight); }
public void setBounds(TGTableColumn column, UIControl cell, float rowHeight) { UIRectangle bounds = column.getControl().getBounds(); cell.setBounds(new UIRectangle(bounds.getX(), 0, bounds.getWidth(), rowHeight)); }