[Mapbender-commits] r2187 - branches/2.5/http/extensions

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 6 06:20:25 EST 2008


Author: christoph
Date: 2008-03-06 06:20:25 -0500 (Thu, 06 Mar 2008)
New Revision: 2187

Modified:
   branches/2.5/http/extensions/wz_jsgraphics.js
Log:
bug fix

cannot update to new version because of other bugs

Modified: branches/2.5/http/extensions/wz_jsgraphics.js
===================================================================
--- branches/2.5/http/extensions/wz_jsgraphics.js	2008-03-06 10:56:31 UTC (rev 2186)
+++ branches/2.5/http/extensions/wz_jsgraphics.js	2008-03-06 11:20:25 UTC (rev 2187)
@@ -100,29 +100,33 @@
 
 function mkDiv(x, y, w, h)
 {
-        this.htm += '<div style="position:absolute;'+
-                'left:' + x + 'px;'+
-                'top:' + y + 'px;'+
-                'width:' + w + 'px;'+
-                'height:' + h + 'px;';
-        if (ie) {
-        		this.htm += '-opacity:' + cw_opacity + ';' + 
-                '-khtml-opacity:' + cw_opacity + ';'+
-                'filter: alpha(opacity=' + (cw_opacity * 100) + ');';
-        }
-
-//'-moz-opacity:' + window.cw_opacity + ';'+
-        this.htm += 
-                'clip:rect(0,'+w+'px,'+h+'px,0);'+
-                'background-color:' + this.color +
-                (!jg_moz? ';overflow:hidden' : '')+
-                ';"><\/div>';
+		if (!isNaN(h)) {
+	        this.htm += '<div style="position:absolute;'+
+	                'left:' + x + 'px;'+
+	                'top:' + y + 'px;'+
+	                'width:' + w + 'px;'+
+	                'height:' + h + 'px;';
+	        if (ie) {
+	        		this.htm += '-opacity:' + cw_opacity + ';' + 
+	                '-khtml-opacity:' + cw_opacity + ';'+
+	                'filter: alpha(opacity=' + (cw_opacity * 100) + ');';
+	        }
+	
+	//'-moz-opacity:' + window.cw_opacity + ';'+
+	        this.htm += 
+	                'clip:rect(0,'+w+'px,'+h+'px,0);'+
+	                'background-color:' + this.color +
+	                (!jg_moz? ';overflow:hidden' : '')+
+	                ';"><\/div>';
+		}
 }
 
 
 function mkDivIe(x, y, w, h)
 {
-        this.htm += '%%'+this.color+';'+x+';'+y+';'+w+';'+h+';';
+		if (!isNaN(h)) {
+	        this.htm += '%%'+this.color+';'+x+';'+y+';'+w+';'+h+';';
+		}
 }
 
 



More information about the Mapbender_commits mailing list