resize editor when its width/height changes

This should fix https://github.com/angular-ui/ui-ace/issues/18