On Iphone, when I load the page and change the orientation to landscape for the first time, google map doesn't take the entire vertical space.
On Iphone, when I load the page and change the orientation to landscape for the first time, google map doesn't take the entire vertical space.
I am using google map api version 3, jquery mobile 1.3.1 and jquery 1.8.3
I use this viewport meta tag:
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1,user-scalable=no" />
This is the code in general:
- <div data-role="page" id="mapPage">
- <div class="ui-grid-solo">
- <div class="ui-block-a">
- <div style="height:100%;width:100%;">
- <a href="#popupPanel" data-mini="true" data-rel="popup" data-transition="none" data-pushStateEnabled="false">
- <div id="optionsBtn" class="optionsBtn"></div>
- </a>
- </div>
- <div data-role="none" id="popupPanel" style="z-index:+99; height:100% !important;">
- (...)
- </div>
- <div class="listViewContainer" id="listViewContainer" style="height: 100% !important;">
- (...)
- </div>
- <div style="clear:both;"></div>
- </div>
- </div>
- <div id="map_canvas"></div>
- </div>
I don't understand why the map doesn't occupy the entire viewport at all times.
Any help would be appreciated.