[Mapbender-commits] r3381 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jan 2 05:07:41 EST 2009
Author: christoph
Date: 2009-01-02 05:07:41 -0500 (Fri, 02 Jan 2009)
New Revision: 3381
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
http://trac.osgeo.org/mapbender/ticket/360
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2009-01-02 09:52:02 UTC (rev 3380)
+++ trunk/mapbender/http/javascripts/map_obj.js 2009-01-02 10:07:41 UTC (rev 3381)
@@ -32,6 +32,12 @@
*/
this.setWidth = function(width){
this.width = parseInt(width, 10);
+
+ //apply new width
+ if(this.frameName){
+ document.getElementById(this.frameName).style.width = this.width;
+ }
+ this.domElement.style.width = this.width;
};
/**
More information about the Mapbender_commits
mailing list