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.setValue(new Array(100).fill('test').join('\n'));
editor.setValue('test');
Editor fully scrolled to the top
Scroll bar shows editor scrolled to the bottom, while text seems to be scrolled to the top.
Could be a recent regression
The text was updated successfully, but these errors were encountered:
Reset native scrollbar when hiding it
aabc6dd
To avoid it reinitializing in a scrolled position on Chrome Issue #6819
This doesn't happen on Firefox. Seems Chrome somehow 'smartly' restores the scrollbar position here, which isn't a good idea. Attached patch should fix it.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Steps to repro
editor.setValue(new Array(100).fill('test').join('\n'));editor.setValue('test');editor.setValue(new Array(100).fill('test').join('\n'));Expected results
Editor fully scrolled to the top
Observed results
Scroll bar shows editor scrolled to the bottom, while text seems to be scrolled to the top.
Notes
Could be a recent regression
Screencap
The text was updated successfully, but these errors were encountered: