[fusion-commits] r1485 - sandbox/jx2/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Aug 28 10:38:55 EDT 2008
Author: pagameba
Date: 2008-08-28 10:38:55 -0400 (Thu, 28 Aug 2008)
New Revision: 1485
Modified:
sandbox/jx2/widgets/OverviewMap.js
Log:
fix resizing issue with OverviewMap
Modified: sandbox/jx2/widgets/OverviewMap.js
===================================================================
--- sandbox/jx2/widgets/OverviewMap.js 2008-08-28 12:54:21 UTC (rev 1484)
+++ sandbox/jx2/widgets/OverviewMap.js 2008-08-28 14:38:55 UTC (rev 1485)
@@ -64,12 +64,12 @@
//first set the size to the size of the DOM element if available
if (this.domObj) {
- this.domObj.style.overflow = 'hidden';
- if (this.domObj.jxLayout) {
- this.domObj.jxLayout.addSizeChangeListener(this);
- } else {
- this.domObj.resize = OpenLayers.Function.bind(this.sizeChanged, this);
- }
+ this.domObj.style.overflow = 'hidden';
+ var jxl = this.domObj.retrieve('jxLayout');
+ if (!jxl) {
+ jxl = new Jx.Layout(this.domObj);
+ }
+ jxl.addEvent('sizeChange', OpenLayers.Function.bind(this.sizeChanged, this));
}
this.oMapOptions = {}; //TODO: allow setting some mapOptions in AppDef
More information about the fusion-commits
mailing list