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

@@ -5,6 +5,7 @@
* Definitive fix for multi form submission in Microsoft Edge causing the Save to not work [#694](https://github.com/getgrav/grav-plugin-admin/issues/694)
* Fix issue with calculating the `theme_url` with `open_basedir` restrictions [#699](https://github.com/getgrav/grav-plugin-admin/issues/699)
* Check for null payload before going on [#526](https://github.com/getgrav/grav-plugin-admin/issues/526)
* Redraw Dashboard Charts when collapsing/expanding the sidebar
# v1.1.1
## 07/14/2016

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long