int containerWidth = ga.getWidth();
int containerHeight = ga.getHeight();
for (final Shape shape : containerShape.getChildren()) {
final GraphicsAlgorithm shapeGa = shape.getGraphicsAlgorithm();
final IDimension size = gaService.calculateSize(shapeGa);
if (containerWidth != size.getWidth() && shapeGa instanceof MultiText) {
gaService.setWidth(shapeGa, containerWidth - 5);
changed = true;
}
if (containerHeight != size.getHeight()) {
if (shapeGa instanceof Polyline) {
final Polyline line = (Polyline) shapeGa;
line.getPoints().set(2, getNewPoint(line, 2, containerHeight, gaService));
line.getPoints().set(3, getNewPoint(line, 3, containerHeight, gaService));