Module: check_mk
Branch: master
Commit: 4f8750b94fc14b529cc12e372b3fae2a7ef9fefc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4f8750b94fc14b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 24 15:37:52 2011 +0200
FIX: Showing up PNP hover menus above perfometers
---
ChangeLog | 1 +
web/htdocs/js/hover.js | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d0b0acc..60619b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,7 @@
* FIX: Views: Handling deprecated value "perpage" for option
column_headers correctly
* FIX: Fixed javascript error when saving edited views without sidebar
+ * FIX: Showing up PNP hover menus above perfometers
* Host/Service Icon column is now modularized and can be extended using
the multisite_icons list.
* New sorters for time and line number of logfile entries
diff --git a/web/htdocs/js/hover.js b/web/htdocs/js/hover.js
index 6ae87ce..85da1c8 100644
--- a/web/htdocs/js/hover.js
+++ b/web/htdocs/js/hover.js
@@ -78,6 +78,11 @@ function hoverShow(x, y, code) {
_hoverMenu = document.createElement('div');
_hoverMenu.style.position = 'absolute';
_hoverMenu.style.width = 'auto';
+
+ // The hover menu needs to have a higher z-index than the highest element
+ // on the pages. In this case it was the perfometer which had 30.
+ _hoverMenu.style.zIndex = 40;
+
document.body.appendChild(_hoverMenu);
}
_hoverMenu.innerHTML = code;