fix for #3085, resize editor on open

@devoncarew 

Fixes #3085.