Improved resize behavior of editor field