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

Use MutationObserver for Monaco Editor AutomaticLayout #90111

Merged
merged 2 commits into from Feb 6, 2020
Merged

Use MutationObserver for Monaco Editor AutomaticLayout #90111

merged 2 commits into from Feb 6, 2020

Conversation

nrayburn-tech
Copy link
Contributor

When changing the size of the editor container that uses the AutomaticLayout option, the editor content updates based on dom mutations instead of waiting on a time interval.

This should work the same as the previously used time interval, but without the performance issues.

This PR fixes #1266

@nrayburn-tech
Copy link
Contributor Author

ResizeObserver could be used instead for browsers that support it, but I wasn't really sure if that should be in the same request or not.

@alexdima
Copy link
Member

alexdima commented Feb 6, 2020

Thank you!

@alexdima alexdima added this to the February 2020 milestone Feb 6, 2020
@alexdima alexdima merged commit d92d732 into microsoft:master Feb 6, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Use resizeObserver for editor layout.
3 participants