Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor autoresize -- how to enable it? #53

Open
marcond opened this issue Jan 13, 2016 · 0 comments
Open

Editor autoresize -- how to enable it? #53

marcond opened this issue Jan 13, 2016 · 0 comments

Comments

@marcond
Copy link

marcond commented Jan 13, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant