fix for #3085, resize editor on open

@devoncarew