PrabuSarvesan opened a new issue, #21852:
URL: https://github.com/apache/superset/issues/21852

   #### How to reproduce the bug
   
   1. Open Sales dashboard in Superset application.
   2. Go to Exploratory tab and toggle(expand/collapse) the dashboard filter.
   3. Switch back again to Sales Overview tab.
   
   ### Expected results
   
   Total revenue chart should be resized based on modified size.
   
   ### Actual results
   
   Total revenue chart was not resized with modified size. This issue occurs 
for all charts.
   
   #### Screenshots
   
   
![image](https://user-images.githubusercontent.com/18459529/196418314-cafcb173-bf23-4b72-bce8-2a647ab60464.png)
   
   
   ### Environment
   
   - browser type and version: Chrome 
   - superset version: Latest source from GitHub
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [*] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [*] I have reproduced the issue with at least the latest released version 
of superset.
   - [*] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   **shouldComponentUpdate returns false** in 
**superset-frontend/src/dashboard/components/gridComponents/Chart.jsx** while 
tab switch. Following condition was not met,
   if (
           nextProps.width !== this.props.width ||
           nextProps.height !== this.props.height
         ) {
           clearTimeout(this.resizeTimeout);
           this.resizeTimeout = setTimeout(this.resize, RESIZE_TIMEOUT);
         }
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to