Module: nagvis
Branch: master
Commit: a302cb25352313d377bd83120d0d056aa112705e
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a302cb25352313d377bd83120d0d056aa112705e

Author: LaMi <[email protected]>
Date:   Tue Jan  5 11:25:47 2010 +0100

Fixed textbox rendering in IE

---

 share/frontend/nagvis-js/js/NagVisTextbox.js |   37 ++++++++++---------------
 1 files changed, 15 insertions(+), 22 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisTextbox.js 
b/share/frontend/nagvis-js/js/NagVisTextbox.js
index 4917f85..c91fa33 100644
--- a/share/frontend/nagvis-js/js/NagVisTextbox.js
+++ b/share/frontend/nagvis-js/js/NagVisTextbox.js
@@ -81,34 +81,27 @@ var NagVisTextbox = NagVisStatelessObject.extend({
         * @author      Lars Michelsen <[email protected]>
         */
        parseTextbox: function () {
-               if(this.conf.w && this.conf.w !== '') {
-                       this.conf.w = this.conf.w+'px';
-               } else {
-                       this.conf.w = 'auto';
-               }
-               
-               if(this.conf.h && this.conf.h !== '') {
-                       this.conf.h = this.conf.h+'px';
-               } else {
-                       this.conf.h = 'auto';
-               }
-               
-               alert(this.conf.w);
-               
                var oLabelDiv = document.createElement('div');
                oLabelDiv.setAttribute('id', this.conf.object_id+'label');
                oLabelDiv.setAttribute('class', 'box');
                oLabelDiv.setAttribute('className', 'box');
-               oLabelDiv.style.background=this.conf.background_color;
-               oLabelDiv.style.borderColor=this.conf.border_color;
+               oLabelDiv.style.background = this.conf.background_color;
+               oLabelDiv.style.borderColor = this.conf.border_color;
                
                oLabelDiv.style.position = 'absolute';
-               oLabelDiv.style.left = this.conf.x+'px';
-               oLabelDiv.style.top = this.conf.y+'px';
-               oLabelDiv.style.width = this.conf.w;
-               oLabelDiv.style.height = this.conf.h;
-               oLabelDiv.style.zIndex = this.conf.z+1;
-               oLabelDiv.style.overflow= 'visible';
+               oLabelDiv.style.left = this.conf.x + 'px';
+               oLabelDiv.style.top = this.conf.y + 'px';
+               
+               if(this.conf.w && this.conf.w !== '' && this.conf.h !== 'auto') 
{
+                       oLabelDiv.style.width = this.conf.w+'px';
+               }
+               
+               if(this.conf.h && this.conf.h !== '' && this.conf.h !== 'auto') 
{
+                       oLabelDiv.style.height = this.conf.h+'px';
+               }
+               
+               oLabelDiv.style.zIndex = this.conf.z + 1;
+               oLabelDiv.style.overflow = 'visible';
                
                /**
                 * IE workaround: The transparent for the color is not enough. 
The border


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to