What should the expected behavior be? It showing a possibly huge block of code or showing only a part of it big enough to not exceed the size of the unexpanded solution box? Both could sound like bad ux.
Just throwing that out there for the discourse team