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

4km dashboard charts beats quickly on Firefox #6

Open
zhe-zhao opened this issue Mar 30, 2021 · 2 comments
Open

4km dashboard charts beats quickly on Firefox #6

zhe-zhao opened this issue Mar 30, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@zhe-zhao
Copy link
Collaborator

Moving from Trello

Describe the bug
As shown in the screen recording, the chart section flashes quickly on Firefox.

To Reproduce
@gtycherry Can help to add more?

Expected behavior
Should display charts normal as in Chrome

Screenshots

Screen_Recording_2021-03-17_at_11 06 56_AM

Desktop (please complete the following information):

  • Browser [Firefox]
  • Version [1.1.6]
@zhe-zhao zhe-zhao added the bug Something isn't working label Mar 30, 2021
@karuppiah7890
Copy link
Contributor

overflow-x: auto seems to be the problem. It's over here

"overflow-x": "auto",

https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x

There's some sort of addition and removal of scroll bar because of this property, which is causing this issue

If we use overflow-x: scroll, firefox always shows a scroll which doesn't look great. I think we could remove it, I saw no problem in removing and resizing in my resolution. The container still seemed responsive. I don't see a scenario where scroll bars would appear because of the auto and it will be useful, because I could never use the scroll bar much (very little scrolling was available) even while resizing

@zhe-zhao
Copy link
Collaborator Author

zhe-zhao commented Apr 8, 2021

@karuppiah7890 There was a feature to show the horizontal scroll bar for charts with more than 10 evaluation period. Means if you select a larger time period, like 6 months, the scroll bar shows to so that we see a fixed spacing between two adjacent points.
Refer to code:

const minLengthForDisplayScrollBar = 10;

A quick fix here is to use a component prop to toggle the overflow-x attr.
Or, alternatively we can consider removing the "fixed spacing" feature, as it doesn't look so nice as expected by us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants