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

Scroll editor into browser view on cursor movement #1232

Closed
danyaPostfactum opened this issue Jan 31, 2013 · 3 comments · Fixed by #1240
Closed

Scroll editor into browser view on cursor movement #1232

danyaPostfactum opened this issue Jan 31, 2013 · 3 comments · Fixed by #1240

Comments

@danyaPostfactum
Copy link
Contributor

I use ACE as textarea replacement on some pages. When cursor is moved below bottom (or above top) window edge, ace should scroll cursor into browser view (default textarea behavior)

@nightwing
Copy link
Member

https://github.com/ajaxorg/ace/tree/textarea fixes scrolling and adds basic support for this.
Since main usecase of ace is a full page editor, and scrolling into view can have side effects (e.g. firefox will scoll elements with overflow:hidden) it should be explicitly enabled with editor.setAutoScrollEditorIntoView();
Do you think editor.setAutoScrollEditorIntoView(false); for disabling it is needed?

@danyaPostfactum
Copy link
Contributor Author

I have toggleable "fullscreen" mode for editing areas, so maybe I need the way to enable/disable this. But I'm not sure, that FireFox issue affects editor container with position:fixed..

@lennartcl
Copy link
Contributor

Addressed with #1240.

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

Successfully merging a pull request may close this issue.

3 participants