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

Squashed charts due to page resize despite removing event listener #1290

Open
anveshyk opened this issue May 11, 2021 · 1 comment
Open

Squashed charts due to page resize despite removing event listener #1290

anveshyk opened this issue May 11, 2021 · 1 comment
Labels

Comments

@anveshyk
Copy link

anveshyk commented May 11, 2021

Hi, not sure if this project is active anymore but I've encountered a bug where charts get "squashed". We can occasionally reproduce this by resizing the page, and then the entire page (not just the charts) seems to re-render and graphs may then get squashed.

This seems to occur on a page resize therefore I removed the resize listener. I did this by manually removing the resize event listener from the chart with a timeout (taken from issue #929, suggested by @phegman).

The latter works most of the time, but very occasionally graph(s) at the bottom of the page (always only the bottom graphs, perhaps due to something happening before these last script tags are processed?) still get squashed. Not very sure what could be going on, but as said I suspect it to be the resize event listener failing to get removed. Anyone have any idea of a possible fix?

Browser: Chrome

Non squashed bar chart example:
image

Squashed example (same chart as above):
image

@anveshyk anveshyk changed the title Squashed charts due to resize event listener, and partly persists even when resize listener removed Squashed charts due to page resize despite removing event listener May 11, 2021
@andrewhamili
Copy link

Hi @gionkunz is there a way for us not to experience squashed charts especially on mobile devices?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants