Fixing Flow for wrapped objects

I have found a typo that caused the container to always grow to the size of the sum of all lines. Given that the line already has the same width as the sum of its components, finding the largest line should be sufficient.