mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Redraw Dashboard Charts when collapsing/expanding the sidebar
This commit is contained in:
@@ -39,7 +39,7 @@ $(global).on('sidebar_state._grav', () => {
|
||||
*/
|
||||
|
||||
Object.keys(Dashboard.Chart.Instances).forEach((chart) => {
|
||||
Dashboard.Chart.Instances[chart].chart.update();
|
||||
setTimeout(() => Dashboard.Chart.Instances[chart].chart.update(), 10);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user