Пример #1
0
 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);
 }
Пример #2
0
  public void setBounds(TGTableColumn column, UIControl cell, float rowHeight) {
    UIRectangle bounds = column.getControl().getBounds();

    cell.setBounds(new UIRectangle(bounds.getX(), 0, bounds.getWidth(), rowHeight));
  }