Commit 17d5a5b4 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

bugfix: added the proper check for "mapHeader" div being there or not

parent c59b4d8f
......@@ -528,7 +528,7 @@ $scaling = <<<EOD
var userAgent = window.navigator.userAgent;
var map = document.getElementById("mapid");
var header = document.getElementById("mapHeader");
if(header) {
if(header.offsetHeight != 0 || !header) {
var offset = header.offsetHeight;
var search4FF = /Firefox/;
if(search4FF.test(userAgent)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment