resize editor on open
Merge pull request #3189 from keertip/editor

fix for #3085, resize editor on open