Code display for community solutions not tall enough

When viewing community solutions, there are two different styles of code presentation. It seems when there is only one iteration, the code container has a CSS height of 100%. When there are multiple iterations, it has a height of 500px.

500px shows only about 12 lines of code, which makes viewing anything but the shortest solutions super annoying.

It would be great if this could be improved.
For example, why not make it always 100% and move the iteration control buttons to the top?