Redraw Dashboard Charts when collapsing/expanding the sidebar

This commit is contained in:
Djamil Legato
2016-07-15 16:02:17 -07:00
parent 0c2efb0a7c
commit 0633bbd2b6
4 changed files with 44 additions and 43 deletions

View File

@@ -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);
});
});