Problem: Width of parent matches summed width of children

This is by design and therefore not a good way to implement linebreaks. You may click on the goForward() blocks to delete them and see how the parent container shrinks.

while(
true
)
goForward()
goForward()
goForward()
goForward()