Module: check_mk
Branch: master
Commit: b0d6acc8adfc275ed1f4216a39f91211d00a57b1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0d6acc8adfc27…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Sep 6 10:24:04 2011 +0200
FIX: Preventing up-then-over effect while loading the dashboard in firefox
---
ChangeLog | 1 +
web/htdocs/check_mk.css | 5 +++--
web/htdocs/js/dashboard.js | 9 +++++----
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4b690a3..32e1fb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
* FIX: fix error on comment page caused by missing sorter
* FIX: endless javascript when fetching pnp graphs on host/service detail pages
* FIX: Not showing the action form in "try" mode of the view editor
+ * FIX: Preventing up-then-over effect while loading the dashboard in firefox
* Added missing i18n strings in command form and list of views
* Views are not reloaded completely anymore. The data tables are reloaded
on their own.
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 5b43013..df11129 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -1663,16 +1663,17 @@ div#dashboard {
div.dashlet {
+ position: absolute;
padding: 0px;
margin: 0px;
+ display: none;
}
/* content area of dashlet, if no iframes are used */
div.dashlet div.dashlet_inner {
+ position: absolute;
padding: 0px;
margin: 0px;
- /* vertical-align: middle;
- text-align: center; */
}
/* Dashlets with "background" set to True */
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index 72d18bc..b456b38 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -42,10 +42,11 @@ function resize_dashlets(id, code)
oDash = document.getElementById("dashlet_" + dashlet[0]);
if(oDash) {
oDash.style.position = 'absolute';
- oDash.style.left = dashlet[1] + "px";
- oDash.style.top = dashlet[2] + "px";
- oDash.style.width = dashlet[3] + "px";
- oDash.style.height = dashlet[4] + "px";
+ oDash.style.display = 'block';
+ oDash.style.left = dashlet[1] + "px";
+ oDash.style.top = dashlet[2] + "px";
+ oDash.style.width = dashlet[3] + "px";
+ oDash.style.height = dashlet[4] + "px";
}
// resize shadow images