fix sizing issue on text editor

Fixed a weird sizing bug with the text editor.