From 54726888f0eeacad3c8501d00cc6dbaa264bfc0f Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 12 Jul 2011 15:48:24 +0000 Subject: [PATCH] a nicer fix for android git-svn-id: http://svn.openlayers.org/trunk/openlayers@12166 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/mobile-jq.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/mobile-jq.js b/examples/mobile-jq.js index 614492e9bf..a7ef681b92 100644 --- a/examples/mobile-jq.js +++ b/examples/mobile-jq.js @@ -28,11 +28,8 @@ $(document).ready(function() { 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(){