superset
superset copied to clipboard
[deck.gl] dashboard view is repositioned when deck.gl chart legend category is clicked
Deck.gl charts with legend (tested with scatter and polygon) get out of visual scope when legend category is clicked (on dashboards that don't fit screen).
How to reproduce the bug
- Open the dashboard with deck.gl visualization (i.e. Deck.gl demo).
- Scroll down to the deck.gl chart (issue is only visible when dashboard doesn't fit screen)
- Click (select/deselect) legend category
Expected results
Legend category is filtered and dashboard view stays in the same position.
Actual results
Legend category is filtered and dashboard is scrolled to the top.
Screenshots
https://user-images.githubusercontent.com/9586713/202557683-e7d1dfbd-a951-4dc7-a7ea-5e1446057b13.mp4
Environment
(please complete the following information):
- browser type and version: firefox 106, chrome 107
- superset version: 2.0.0 (official docker image: apache/superset:2.0.0)
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I haven't found one similar.