Fixed layout issue in the text editor.