]> git.openstreetmap.org Git - rails.git/commitdiff
Typo in IE6 fix made it not work quite right.
authorJohn McKerrell <john@mckerrell.net>
Mon, 7 May 2007 18:45:10 +0000 (18:45 +0000)
committerJohn McKerrell <john@mckerrell.net>
Mon, 7 May 2007 18:45:10 +0000 (18:45 +0000)
app/views/site/index.rhtml

index 1fe1dccd74cccdbced08fd0fc8cf515206e8954a..d6a0fe8a325eb9544fd6d25fd69212cccc0653fd 100644 (file)
     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' );
     }
     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 ) {