-
-
Notifications
You must be signed in to change notification settings - Fork 137
useResizeHandler no longer works correctly #41
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
Comments
Interesting. How does your implementation work?
|
I can provide the implementation later if you are interested. But it also did work with previous versions of plotly.js. When using |
Yes, I can see what you mean. If I just set @alexcjohnson any thoughts here as to whether this is the desired behaviour for |
Ah interesting - yes, height and width (can) depend on state outside the |
This is fixed with plotly.js 1.35.0 :) https://github.com/plotly/plotly.js/releases/tag/v1.35.0 |
I just install this version and it work, thanks a lot |
Can you please fix this proper, and use |
After latest plotly.js update (1.34), plots with useResizeHandler prop are no longer resized with the surrounding div. They may still resize correctly when e.g. window size is changed.
See CodePen example
Seems to be related to the use of the Plotly.react method, since it still seems to work correctly when I use my own Plotly.react implementation.
The text was updated successfully, but these errors were encountered: