Author: Lars Michelsen <[email protected]>
Date: Wed Nov 28 18:02:35 2012 +0100
Committer: Lars Michelsen <[email protected]>
Commit-Date: Wed Nov 28 18:02:35 2012 +0100
Bugfix: Fixed background positioning on browser zoomed maps
---
ChangeLog | 1 +
share/frontend/nagvis-js/js/frontend.js | 2 +-
share/userfiles/templates/default.css | 3 +++
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e2fdfb..25af52a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ Frontend:
* Bugfix: Fixed "img" not defined js error in IE8 (Please note: Zoom
function does not work in IE8 - IE8 event handling seems to be broken)
* Bugfix: Fixed flickering hover menu on overview page when sidebar opened
+ * Bugfix: Fixed background positioning on browser zoomed maps
Geomap:
* New option source_type to configure a csv file or the used backend as
diff --git a/share/frontend/nagvis-js/js/frontend.js
b/share/frontend/nagvis-js/js/frontend.js
index 8c8c89a..38ce652 100644
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -1009,7 +1009,7 @@ function setMapBackgroundImage(sImage) {
if(!oImage) {
var oImage = document.createElement('img');
oImage.id = 'backgroundImage';
- document.body.appendChild(oImage);
+ document.getElementById('map').appendChild(oImage);
}
addZoomHandler(oImage);
diff --git a/share/userfiles/templates/default.css
b/share/userfiles/templates/default.css
index a4a7a04..46c068b 100644
--- a/share/userfiles/templates/default.css
+++ b/share/userfiles/templates/default.css
@@ -83,6 +83,9 @@ div.welcome a:hover {color:#779D2A}
/* Background images */
#backgroundImage {
+ position: absolute;
+ top: 0;
+ left: 0;
z-index: 0;
}
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins