super.layout(0, 0, width, height);
java.util.List<Cell> cells = getCells();
if (round) {
for (int i = 0, n = cells.size(); i < n; i++) {
Cell c = cells.get(i);
if (c.getIgnore()) continue;
float widgetWidth = Math.round(c.getWidgetWidth());
float widgetHeight = Math.round(c.getWidgetHeight());
float widgetX = Math.round(c.getWidgetX());
float widgetY = height - Math.round(c.getWidgetY()) - widgetHeight;
c.setWidgetBounds(widgetX, widgetY, widgetWidth, widgetHeight);
Actor actor = (Actor)c.getWidget();
if (actor != null) actor.setBounds(widgetX, widgetY, widgetWidth, widgetHeight);
}
} else {
for (int i = 0, n = cells.size(); i < n; i++) {
Cell c = cells.get(i);
if (c.getIgnore()) continue;
float widgetHeight = c.getWidgetHeight();
float widgetY = height - c.getWidgetY() - widgetHeight;
c.setWidgetY(widgetY);
Actor actor = (Actor)c.getWidget();
if (actor != null) actor.setBounds(c.getWidgetX(), widgetY, c.getWidgetWidth(), widgetHeight);
}
}
// Validate children separately from sizing actors to ensure actors without a cell are validated.
Array<Actor> children = table.getChildren();
for (int i = 0, n = children.size; i < n; i++) {