-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: detect style changes from dashboard for re-rendering visualization #1667
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose for DV the style effect doesn't matter as the renderCounter one is used.
@edoardo I switched back to separate effects. Realized the problem was that I was using |
## [35.20.22](v35.20.21...v35.20.22) (2021-03-22) ### Bug Fixes * detect style changes from dashboard for re-rendering visualization ([#1667](#1667)) ([ee6a7d0](ee6a7d0))
🎉 This PR is included in version 35.20.22 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…on (#1667) Key features: Visualizations in dashboard were not rerendering to fit the item size in the following situations: * item fullscreen * edit item resize * change screen width (e.g., switch to/from small screen) Description Dashboard and Data Visualizer apps have different approaches regarding visualization size and resizing. DV vis containers have display flex and use a counter that updates when the window is resized, to trigger a re-render of the visualization. In Dashboard, the container has a set width and height, which change on any of the above resizing scenarios. It does not use a counter. The new effect will end up being specific to dashboard, while the existing effect that responds to renderCounter will be specific to DV. A future improvement would possibly be to use the same mechanisms for both apps. But playing it safe for now, since we are in a hard freeze.
…on (#1667) Key features: Visualizations in dashboard were not rerendering to fit the item size in the following situations: * item fullscreen * edit item resize * change screen width (e.g., switch to/from small screen) Description Dashboard and Data Visualizer apps have different approaches regarding visualization size and resizing. DV vis containers have display flex and use a counter that updates when the window is resized, to trigger a re-render of the visualization. In Dashboard, the container has a set width and height, which change on any of the above resizing scenarios. It does not use a counter. The new effect will end up being specific to dashboard, while the existing effect that responds to renderCounter will be specific to DV. A future improvement would possibly be to use the same mechanisms for both apps. But playing it safe for now, since we are in a hard freeze.
Key features
Description
Dashboard and Data Visualizer apps have different approaches regarding visualization size and resizing. DV vis containers have display flex and use a counter that updates when the window is resized, to trigger a re-render of the visualization. In Dashboard, the container has a set width and height, which change on any of the above resizing scenarios. It does not use a counter.
The new effect will end up being specific to dashboard, while the existing effect that responds to
renderCounter
will be specific to DV. A future improvement would possibly be to use the same mechanisms for both apps. But playing it safe for now, since we are in a hard freeze.Screenshots
(the video clips off the legend at the bottom, but it is actually visible)
dashboard.fs.mov