[fusion-commits] r1486 - sandbox/jx2/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Aug 28 10:43:26 EDT 2008


Author: pagameba
Date: 2008-08-28 10:43:25 -0400 (Thu, 28 Aug 2008)
New Revision: 1486

Modified:
   sandbox/jx2/lib/Map.js
Log:
fix resizing logic for new jx.

Modified: sandbox/jx2/lib/Map.js
===================================================================
--- sandbox/jx2/lib/Map.js	2008-08-28 14:38:55 UTC (rev 1485)
+++ sandbox/jx2/lib/Map.js	2008-08-28 14:43:25 UTC (rev 1486)
@@ -82,8 +82,9 @@
         this._oDomObj = $(this._sDomObj);
         this.layerRoot = new Fusion.Widget.Map.Group();
         
-        if (this._oDomObj.jxLayout) {
-            this._oDomObj.jxLayout.addSizeChangeListener(this);
+        var jxl = this._oDomObj.retrieve('jxLayout');
+        if (jxl) {
+            jxl.addEvent('sizeChange', OpenLayers.Function.bind(this.sizeChanged, this));
         }
         
         if (widgetTag.extension.FractionalZoom) {
@@ -497,7 +498,7 @@
     resize : function() {
       //console.log('Fusion.Widget.Map.resize');
         this.oMapOL.updateSize();
-        var d = Element.getDimensions(this.getDomObj());
+        var d = $(this.getDomObj()).getContentBoxSize();
         this._nWidth = d.width;
         this._nHeight = d.height;
         if (this._oCurrentExtents) {



More information about the fusion-commits mailing list