ahn / vaadin-aceeditor

Vaadin wrapper for Ace editor
Apache License 2.0
24 stars 37 forks source link

Editor autoresize -- how to enable it? #53

Open marcond opened 8 years ago

marcond commented 8 years ago

Hello

It's probably something stupid I'm overlooking, but I'm missing how to make the editor resize automatically when new text is entered or deleted, avoiding scrollbars. For now, I did a workaround by adding a listener (for ValueChangeEvent) and setting the height by hand, but it's ugly as hell -- it gets a very noticeable hiccup every time I add a new line.

I've tried the usual setHeightUndefined, setHeight(null), toyed a bit with the javascript. I just can't figure out what's needed. It even looks that this may be the usual behavior on javascript-only, since the AceEditor demos seem to do autoresize without any additional settings.

Any hint?? Marcond