X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/48a3a317bc2100f6952e78462087bbab29cee635..b92e1b058421a6bf49f65f2d45060cfdf197fd1d:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 4b187c099..d0c9c2e29 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -87,6 +87,7 @@ var bottom = getStyle( el, 'bottom' ); var right = getStyle( el, 'right' ); var width = el.old_width; + var height; if( ! width ) { width = getStyle( el, 'width' ); } @@ -98,7 +99,7 @@ if( el.offsetParent.nodeName == 'BODY' || el.offsetParent.nodeName == 'HTML' ) { if( typeof( window.innerWidth ) == 'number' ) { pwidth = window.innerWidth; - height = window.innerHeight; + pheight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { pwidth = document.documentElement.clientWidth;