dosubot[bot] commented on issue #31245: URL: https://github.com/apache/superset/issues/31245#issuecomment-2511622371
<!-- Answer --> The issue you're experiencing with the `position_json` not updating correctly after resizing a dashboard column in Superset version 4.0.2 might be related to how the resizing events are handled in the frontend. The `position_json` should be updated when a column containing a chart is resized, reflecting the new dimensions in the `meta` attribute of the chart holder <sup>[[1]](https://github.com/apache/superset/blob/master/superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py)</sup>. The resizing process is managed by the `ResizableContainer` component, which uses the `Resizable` component from the `re-resizable` library. The `resizeComponent` function is responsible for updating the component's dimensions in the Redux store, which should then update the `position_json` <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/resizable/ResizableContainer.jsx)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/actions/dashboardLayout.js)</sup>. If the `position_json` is not updating as expected, it could be due to a bug or a specific condition in version 4.0.2 that prevents the update. Unfortunately, I couldn't find any specific known issues or configurations that might cause this problem in the available data <sup>[[1]](https://github.com/apache/superset/blob/master/superset/migrations/versions/2018-07-22_11-59_bebcf3fed1fe_convert_dashboard_v1_positions.py)</sup>. As a workaround, you might consider manually triggering the update of the `position_json` after resizing, or continue using your current method of adjusting chart sizes before adding them to a column. If this behavior persists, it might be worth investigating further in the codebase or checking for any updates or patches that address this issue. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- 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 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