[mapguide-commits] r7951 - sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 2 17:42:50 PST 2013


Author: hubu
Date: 2013-12-02 17:42:50 -0800 (Mon, 02 Dec 2013)
New Revision: 7951

Modified:
   sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/index.html
   sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/indexNoLegend.html
Log:
Fix cannot preview layer in Studio.

When previewing layer in Studio, it uses the template mapguide/preview/index.html. The size of Map element is zero. Now we resize the main page explicitly to fix the issue.

Modified: sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/index.html
===================================================================
--- sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/index.html	2013-12-02 11:35:40 UTC (rev 7950)
+++ sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/index.html	2013-12-03 01:42:50 UTC (rev 7951)
@@ -87,6 +87,7 @@
          })
      );
 
+     $('thePage').resize({forceResize: true});
      Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, fusionInitialized);
      Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError);
      Fusion.initialize();

Modified: sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/indexNoLegend.html
===================================================================
--- sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/indexNoLegend.html	2013-12-02 11:35:40 UTC (rev 7950)
+++ sandbox/adsk/2.6l/Oem/fusionMG/templates/mapguide/preview/indexNoLegend.html	2013-12-03 01:42:50 UTC (rev 7951)
@@ -62,6 +62,7 @@
          content: 'MapPane'
      });
 
+     $('thePage').resize({forceResize: true});
      Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, fusionInitialized);
      Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError);
      Fusion.initialize();



More information about the mapguide-commits mailing list