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

Plots not displayed correctly on Firefox #238

Open
dandavies99 opened this issue Dec 15, 2022 · 1 comment
Open

Plots not displayed correctly on Firefox #238

dandavies99 opened this issue Dec 15, 2022 · 1 comment
Labels
bug Something isn't working frontend related to the frontend

Comments

@dandavies99
Copy link
Contributor

dandavies99 commented Dec 15, 2022

Describe the bug
Only the very top of each plot is visible on each data card when viewed using Firefox. The download buttons at the bottom of the card are also not visible. Chrome and Safari seem OK.

To Reproduce
Go to https://liionsden-prod-app.azurewebsites.net/battDB/exps/1/

Expected behavior
Should display the whole plot within the card.

Screenshots
image

Browser (please complete the following information, if appropraite):

  • Browser: Firefox
  • Version: 108.0

Aha! Link: https://imperial-college-ict.aha.io/requirements/RSE-132-16

@dandavies99 dandavies99 added bug Something isn't working frontend related to the frontend labels Dec 15, 2022
@dandavies99
Copy link
Contributor Author

Not sure where to start with this one. It seems that Firefox is not aware of the size of the plot, so doesn't leave enough room for it in the card. Manually adding space just after the plot in the template doesn't work because the amount of space to leave will vary depending on the plot.

This could be a Firefox compatibility issue with Bootstrap, Django, Plotly or some combination.

One final consideration is that the way in which plots are rendered (just returning them as a div using plotly.offline) could be modified, but have seen compatibility issues trying to use django_plotly_dash in the past. See #174.

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

No branches or pull requests

1 participant