[Mapbender-commits] r6062 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon May 3 10:19:48 EDT 2010
Author: christoph
Date: 2010-05-03 10:19:42 -0400 (Mon, 03 May 2010)
New Revision: 6062
Modified:
trunk/mapbender/http/plugins/mb_pane.js
Log:
resizeAll after Mapbender.events.afterInit
Modified: trunk/mapbender/http/plugins/mb_pane.js
===================================================================
--- trunk/mapbender/http/plugins/mb_pane.js 2010-05-03 12:17:56 UTC (rev 6061)
+++ trunk/mapbender/http/plugins/mb_pane.js 2010-05-03 14:19:42 UTC (rev 6062)
@@ -1,6 +1,7 @@
var $pane = $(this);
var PaneApi = function (o) {
+ var that = this;
var paneOptions = {};
var paneTypes = ["center", "west", "east", "north", "south"];
@@ -35,6 +36,10 @@
this.resizeAll = function () {
layout.resizeAll();
};
+
+ Mapbender.events.afterInit.register(function () {
+ that.resizeAll();
+ });
};
$pane.mapbender(new PaneApi(options));
More information about the Mapbender_commits
mailing list