The map was displayed correctly before adding the panel . Now, as soon as I add a panel div on the page, the map will display like this:

It just clutters the top, leaving a wide space below. The button in the upper left corner of the image is used to open a panel that opens normally. Sorry for working with a spotty image.
The following is the HTML:
<body> <div data-role="page" id="map-page" data-url="map-page"> <div data-role="panel" id="mypanel"> </div> <div data-role="header"> <a href="#mypanel" data-role="button" data-icon="bars" data-iconpos="notext">Choose Station</a> <h1>The Header</h1> <a href="index.html" data-ajax="false" data-role="button" data-icon="refresh" data-iconpos="notext">Refresh</a> </div> <div data-role="content" id="map-canvas"> </div> <div data-role="footer" data-id="myfooter" class="ui-bar" data-position="fixed"> <h4>© 2013</h4> </div> </div> </body>
My custom css
html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map-page, #map-canvas { height: 100% }
Otherwise, I use jquery.mobile-1.3.1.min.css by default. I probably know that this is possible due to css, but could not understand.
source share