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

Ticks disappear when updating width or height #224

Closed
rgosse opened this issue Dec 16, 2020 · 3 comments
Closed

Ticks disappear when updating width or height #224

rgosse opened this issue Dec 16, 2020 · 3 comments

Comments

@rgosse
Copy link

rgosse commented Dec 16, 2020

See this codesandbox

When I click on one of the buttons to resize the grid, I trigger a rerender of the plot. The changes are reflected but it has the side effect of making the ticks on the x-axis disappear.

plotresize

I created this issue here because I could not reproduce solely using plotly.js, see my attempt here.

Interestingly, adding key={Math.random()} fixes the issue 💩

Thanks

@alexcjohnson
Copy link
Collaborator

This looks like plotly/plotly.js#5345 which will be included in the next release.

@rgosse
Copy link
Author

rgosse commented Dec 17, 2020

This looks like plotly/plotly.js#5345 which will be included in the next release.

I tried using the build from this PR in my codepen and indeed it solves the issue. I will try in my project too and confirm.

@rgosse
Copy link
Author

rgosse commented Dec 18, 2020

Closing this issue as 1.58.3 resolves it.

@rgosse rgosse closed this as completed Dec 18, 2020
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

2 participants