BlockContainer container = this.wrapper;
if (container == null) {
container = this.items;
}
final RectangleConstraint c = this.toContentConstraint(constraint);
final Size2D size = container.arrange(g2, c);
result.height = this.calculateTotalHeight(size.height);
result.width = this.calculateTotalWidth(size.width);
return result;
}