footer and header of iPad 3 doesn't fit correctly

footer and header of iPad 3 doesn't fit correctly

Hi guys ,
I've been developing an application and whenever i'm testing on the iPad to check the size i have the header on the status bar and there is a white area under the footer i don't know from where ! please help


and this is the code of my page
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
  4. <meta name="apple-mobile-web-app-capable" content="yes" />
  5. <title>jQuery Mobile Web App</title>
  6. <link href="jquery-mobile/jquery.mobile-1.3.2.min.css" rel="stylesheet" type="text/css"/>
  7. <link href="jquery-mobile/jquery.mobile.structure-1.3.2.min.css" rel="stylesheet" type="text/css"/>
  8. <link href="jquery-mobile/jquery.mobile.theme-1.3.2.min.css" rel="stylesheet" type="text/css"/>

  9. <script src="jquery-mobile/jquery-1.6.4.min.js" type="text/javascript"></script>
  10. <script src="jquery-mobile/jquery.mobile-1.3.2.min.js" type="text/javascript"></script>
  11. <script type="text/javascript">
  12. document.addEventListener('touchmove', function(event) {
  13.      event.preventDefault();
  14. }, false);
  15. </script>

  16. <script>
  17. function stretch_portal_content() {
  18.             if ($(window).height() > $('body').innerHeight())
  19.             {
  20.                 $('#portal-content').height(
  21.        $(window).height() - (
  22.            $('body').innerHeight() - $('#portal-content').outerHeight(true)
  23.        )
  24.        );
  25.             }
  26. }
  27. </script>
  28. </head> 
  29. <body> 

  30. <div data-role="page" id="page">
  31. <div data-role="header" data-theme="b" data-position="fixed" >
  32. <h1>My Page</h1>
  33. </div>
  34. <div data-role="content"> </div>
  35. <div data-role="footer" data-theme="b" data-position="fixed" >
  36. <h4>Page Footer</h4>
  37. </div>
  38. </div>






  39. </div>

  40. </body>
  41. </html>
and i change the CSS file for iPad 3
i changed this line 
  1. @media only screen 
  2. and (min-device-width : 768px) 
  3. and (max-device-width : 1024px) 
  4. and (orientation : landscape)
  5. and (-webkit-min-device-pixel-ratio: 2) 
  6. {


please Help !!!