From: John McKerrell Date: Mon, 7 May 2007 18:45:10 +0000 (+0000) Subject: Typo in IE6 fix made it not work quite right. X-Git-Tag: live~8482 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fbc431f4646ae7086956e0b05074a603e7861176?hp=56e4364aa911498ff258edca3d8eafcfae9ed7d4 Typo in IE6 fix made it not work quite right. --- diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 1fe1dccd7..d6a0fe8a3 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -128,14 +128,8 @@ var el = document.getElementById( 'map' ); var left = getStyle( el, 'left' ); var top = getStyle( el, 'top' ); - var bottom = el.old_bottom; - if( ! bottom ) { - bottom = getStyle( el, 'bottom' ); - } - var right = el.old_right; - if( ! right ) { - right = getStyle( el, 'right' ); - } + var bottom = getStyle( el, 'bottom' ); + var right = getStyle( el, 'right' ); var width = el.old_width; if( ! width ) { width = getStyle( el, 'width' ); @@ -168,9 +162,10 @@ } if( top != 'auto' && bottom != 'auto' && height == 'auto' ) { el.old_height = height; - var new_height = (pheight - el.offsetHeight - parseInt( bottom ) ); + var new_height = (pheight - el.offsetTop - parseInt( bottom ) ); el.style.height = new_height + 'px'; } + map.updateSize(); } if( ie6 ) {