Author:   Lars Michelsen <[email protected]>
Date:     Mon Jun 25 12:10:12 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Jun 25 12:10:12 2012 +0200

Bugfix: Fixed icons not being displayed in IE (version 9 in this case)

---

 ChangeLog                             |    1 +
 share/frontend/nagvis-js/js/nagvis.js |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3e9b3de..28d6388 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@ Frontend
   * Bugfix: When releasing relative coordinates the parent object is not 
highlighted anymore
   * Bugfix: Fixed bug which suppressed the hover menu on overview page in some 
cases
   * Bugfix: Fixed some IE css warning message
+  * Bugfix: Fixed icons not being displayed in IE (version 9 in this case)
 
 1.7b2
 Core
diff --git a/share/frontend/nagvis-js/js/nagvis.js 
b/share/frontend/nagvis-js/js/nagvis.js
index 614a95f..dccd497 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -1289,8 +1289,15 @@ function addZoomHandler(oImage) {
     addEvent(oImage, 'load', function() {
         // This can not be added directly to the object beacause the
         // width/height is scaled in at least firefox automatically
+
+        // IE FAIL: Needs to be made visible during getting this.width/height
+        // because IE can not tell us anything about the dimensions when
+        // the object is not visible
+        this.style.display = 'block';
         var width  = addZoomFactor(this.width);
         var height = addZoomFactor(this.height);
+        this.style.display = 'none';
+
         this.width  = width;
         this.height = height;
         // Now really show the image


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to