[Mapbender-commits] r6214 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 25 07:53:58 EDT 2010
Author: christoph
Date: 2010-05-25 07:53:57 -0400 (Tue, 25 May 2010)
New Revision: 6214
Modified:
trunk/mapbender/http/plugins/mb_pane.js
Log:
new event resize
Modified: trunk/mapbender/http/plugins/mb_pane.js
===================================================================
--- trunk/mapbender/http/plugins/mb_pane.js 2010-05-21 08:33:27 UTC (rev 6213)
+++ trunk/mapbender/http/plugins/mb_pane.js 2010-05-25 11:53:57 UTC (rev 6214)
@@ -3,6 +3,10 @@
var PaneApi = function (o) {
var that = this;
+ this.events = {
+ resize: new Mapbender.Event()
+ };
+
var paneOptions = {};
var paneTypes = ["center", "west", "east", "north", "south"];
@@ -26,8 +30,10 @@
south__paneSelector: "." + o.id + "-south",
center__onresize: function (name, element, state, options, layoutName) {
$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
+ that.events.resize.trigger();
},
onresize: function (name, element, state, options, layoutName) {
+ that.events.resize.trigger();
try {
$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
}
More information about the Mapbender_commits
mailing list