Fixed scrolling when setting the editor text programatically