Module: check_mk
Branch: master
Commit: 0947e1b688aa9751252b907f0851b02667ab2991
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0947e1b688aa97…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 5 13:51:26 2014 +0100
Dashoard designer: Improved toggling of sizing modes
---
web/htdocs/js/dashboard.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index acda275..585fbf5 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -591,6 +591,8 @@ function toggle_sizer(nr, sizer_id) {
dashlet.w = GROW;
}
else if (dashlet.w == GROW) {
+ if (!(nr in g_last_absolute_widths))
+ g_last_absolute_widths[nr] = dashlet_obj.clientWidth / grid_size;
dashlet.w = MAX;
}
else if (dashlet.w == MAX) {
@@ -606,6 +608,8 @@ function toggle_sizer(nr, sizer_id) {
dashlet.h = GROW;
}
else if (dashlet.h == GROW) {
+ if (!(nr in g_last_absolute_heights))
+ g_last_absolute_heights[nr] = dashlet_obj.clientHeight / grid_size;
dashlet.h = MAX;
}
else if (dashlet.h == MAX) {