Created
June 9, 2011 10:23
-
-
Save feedhenry-gists/1016485 to your computer and use it in GitHub Desktop.
Mapping Example jQuery Mobile Version Map.show
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bind the callback for when the map page is shown | |
$("#map").live( "pageshow", function(event, ui){ | |
//Let the maps_div fill the full area available | |
var mpageHeight = $("#map").height(); | |
var mHeaderHeight = $("#map .ui-header").height(); | |
var mapH = mpageHeight - mHeaderHeight | |
$("#maps_div").css("height", mapH + "px"); | |
$("#maps_div").css("width", "100%"); | |
// Show the map | |
map.show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment