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

Redraw Ace on change of width/height #82

Closed
voronianski opened this issue Feb 4, 2016 · 1 comment
Closed

Redraw Ace on change of width/height #82

voronianski opened this issue Feb 4, 2016 · 1 comment

Comments

@voronianski
Copy link

I'm listening on window's resize event to change ace's dimensions (https://github.com/voronianski/esnextbin/blob/master/src/components/Editors.jsx#L115) however after changing dimensions of wrapper with id codeEditor dimensions of class .ace_content are not changed.

@voronianski
Copy link
Author

Resolved this with width="auto" and height="auto" and triggering browser resize event - window.dispatchEvent(new Event('resize'));.

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