Fix bug where code editor would become corrupt.

When showing or hiding the output pane, the editor would not reflow its
contents.