-
Notifications
You must be signed in to change notification settings - Fork 38
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
Resize canvas after wrapper DOM element resized #52
Comments
What do you mean? This should be done automatically. Are you doing the resizing in code? And if so, can you share it? Perhaps I have omitted a use case. |
See the screenshot below. Actually, both canvas width/height and CSS width/height stay the same after the wrapper DOM element resizes. Everything other than the canvas resized correctly, e.g., the parent The wrapper is a relatively positioned
|
This is strange, because the resize event is bound for the "parent element" ( Can you maybe try to remove the Alternatively, try calling |
I see. The 'resize' event is only fired on the Window: resize event (MDN link)
|
Is there a way to dynamically update the webgl canvas size (not its CSS width/height) after the wrapper DOM element for LiteMol plugin is resized?
The text was updated successfully, but these errors were encountered: