Fix editor resizing bug. closes #49