Module: check_mk
Branch: master
Commit: f1cdf3da8506eeb3c25867d9dd22f35a03542127
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f1cdf3da8506ee…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 9 11:16:45 2016 +0100
3980 FIX Fixed possible flickering GUI when using Chrome and zooming the page
---
.werks/3980 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/js/sidebar.js | 13 -------------
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/.werks/3980 b/.werks/3980
new file mode 100644
index 0000000..7e704af
--- /dev/null
+++ b/.werks/3980
@@ -0,0 +1,9 @@
+Title: Fixed possible flickering GUI when using Chrome and zooming the page
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478686590
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 6a60199..d7d4c33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,6 +68,7 @@
* 4040 FIX: Fix error in view about "No WATO folder ..." in case of host
imported via cmcdump...
* 4046 FIX: Repaired html rendering....
* 3938 FIX: tactical overview: fixed wrong display of number of host/service
problems...
+ * 3980 FIX: Fixed possible flickering GUI when using Chrome and zooming the page
WATO:
* 3915 User access times: New icon when never logged in; New column "last
seen"
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index 1a612b0..3e167fc 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -410,19 +410,6 @@ function set_sidebar_size() {
var oFooter = document.getElementById('side_footer');
var height = pageHeight();
- // Resize sidebar frame on Chrome (and other webkit browsers).
- if (isWebkit()) {
- var oldcols = parent.document.body.cols.split(",");
- var oldwidth = parseInt(oldcols[0]);
- var width = parent.frames[0].pageWidth();
- // Note: previously this was "var width = oHeader.clientWidth;" and
worked
- // fine. It stopped working - probably with new Chrome versions. We do not
- // know yet if the new way also works on old Chrome versions.
- var target_width = parseInt(oldwidth * sidebar_width() / width);
- var newcols = target_width.toString() + ",*";
- parent.document.body.cols = newcols;
- }
-
// Don't handle zero heights
if (height == 0)
return;