[OpenLayers-Commits] r12166 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Jul 12 11:48:25 EDT 2011


Author: ahocevar
Date: 2011-07-12 08:48:24 -0700 (Tue, 12 Jul 2011)
New Revision: 12166

Modified:
   trunk/openlayers/examples/mobile-jq.js
Log:
a nicer fix for android

Modified: trunk/openlayers/examples/mobile-jq.js
===================================================================
--- trunk/openlayers/examples/mobile-jq.js	2011-07-12 15:38:46 UTC (rev 12165)
+++ trunk/openlayers/examples/mobile-jq.js	2011-07-12 15:48:24 UTC (rev 12166)
@@ -28,11 +28,8 @@
             initLayerList();
         }
     }
-    $('#mappage').live('pageshow', function() {
-        $('#mappage').die('pageshow', arguments.callee);
-        fixContentHeight();
-    });
     $(window).bind("orientationchange resize pageshow", fixContentHeight);
+    document.body.onload = fixContentHeight;
 
     // Map zoom  
     $("#plus").click(function(){



More information about the Commits mailing list