Go into the plugins/gpsmap/js directory and edit the GPSMaps.js file. At the bottom of the file you will find the resize function, just replace it completely with the following:
Code: Select all
function resize(){
var frame = document.getElementById("map");
var htmlheight = document.body.parentNode.scrollHeight;
var windowheight;
if (window.innerHeight) {
windowheight=window.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight) {
windowheight=document.documentElement.clientHeight;
}
else if (document.body) {
windowheight=document.body.clientHeight;
}
if ( htmlheight < windowheight ) {
document.body.style.height = windowheight + "px";
frame.style.height = parseInt(windowheight-105) + "px";
}
else {
document.body.style.height = htmlheight + "px";
frame.style.height = parseInt(htmlheight-105) + "px";
}
}
The main problem here is lots of newer versions of browsers like the ie9 and the newest chrome don't recognize "window.innerHeight" so the script would attempt to set the frame height to a negative value. This should work on most browsers now, I tested it with ie9, firefox 10.0 and 11.0, and chrome 17. Make sure you do a full reload in your browser to test it out.