[Mapbender-commits] r6006 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 22 09:24:39 EDT 2010


Author: topi
Date: 2010-04-22 09:24:34 -0400 (Thu, 22 Apr 2010)
New Revision: 6006

Modified:
   trunk/mapbender/http/plugins/mb_pane.js
Log:


Modified: trunk/mapbender/http/plugins/mb_pane.js
===================================================================
--- trunk/mapbender/http/plugins/mb_pane.js	2010-04-22 13:10:09 UTC (rev 6005)
+++ trunk/mapbender/http/plugins/mb_pane.js	2010-04-22 13:24:34 UTC (rev 6006)
@@ -17,8 +17,16 @@
 	
 	var myOptions = $.extend({
 		applyDefaultStyles: false,
-		center__onresize: function (name, element, state, options, layoutName) {
-			$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
+//		center__onresize: function (name, element, state, options, layoutName) {
+//			$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
+//		}
+		onresize: function (name, element, state, options, layoutName) {
+			try {
+				$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
+			}
+			catch (e) {
+				console.log(e);
+			}
 		}
 	}, o.layoutOptions);
 	var layout = $pane.layout(myOptions);



More information about the Mapbender_commits mailing list