]> git.openstreetmap.org Git - rails.git/commitdiff
Hiding the element and then, shortly after, redisplaying it makes IE6 re-render
authorJohn McKerrell <john@mckerrell.net>
Mon, 28 May 2007 14:52:06 +0000 (14:52 +0000)
committerJohn McKerrell <john@mckerrell.net>
Mon, 28 May 2007 14:52:06 +0000 (14:52 +0000)
things correctly.

app/views/site/index.rhtml

index d6a0fe8a325eb9544fd6d25fd69212cccc0653fd..d540836d7cdec0a27c16fe5788a0175247c8b629 100644 (file)
       el.style.height = new_height + 'px';
     }
     map.updateSize();
       el.style.height = new_height + 'px';
     }
     map.updateSize();
+    el.style.display = 'none';
+    setTimeout( function() {
+        el.style.display = '';
+        }, 200 );
   }
 
 if( ie6 ) {
   }
 
 if( ie6 ) {