[Mapbender-commits] r6171 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue May 11 08:43:32 EDT 2010
Author: christoph
Date: 2010-05-11 08:43:32 -0400 (Tue, 11 May 2010)
New Revision: 6171
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-05-11 12:43:02 UTC (rev 6170)
+++ trunk/mapbender/http/plugins/mb_pane.js 2010-05-11 12:43:32 UTC (rev 6171)
@@ -2,6 +2,7 @@
var PaneApi = function (o) {
var that = this;
+
var paneOptions = {};
var paneTypes = ["center", "west", "east", "north", "south"];
@@ -12,12 +13,17 @@
if (!$currentPane.is("div") && !$currentPane.is("iframe")) {
$currentPane = $currentPane.wrap("<div></div>").parent();
}
- $currentPane.appendTo($pane).addClass("ui-layout-" + type).addClass("pane");
+ $currentPane.appendTo($pane).addClass(o.id + "-" + type).addClass("pane");
}
}
var myOptions = $.extend({
applyDefaultStyles: false,
+ center__paneSelector: "." + o.id + "-center",
+ west__paneSelector: "." + o.id + "-west",
+ east__paneSelector: "." + o.id + "-east",
+ north__paneSelector: "." + o.id + "-north",
+ south__paneSelector: "." + o.id + "-south",
center__onresize: function (name, element, state, options, layoutName) {
$(element).mapbender("setDimensions", $(element).innerWidth(), $(element).innerHeight());
},
More information about the Mapbender_commits
mailing list