]> git.sesse.net Git - vlc/commitdiff
Fix mosaic wizard on IE. Thanks to Albert on the forum for the tip
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 28 Mar 2006 17:16:52 +0000 (17:16 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 28 Mar 2006 17:16:52 +0000 (17:16 +0000)
share/http/js/mosaic.js

index 813a32634bd0952d8888dfa9f35c5ce9db92ac26..cdac316767f4b8b493dd23c5436c425a824e84ae 100644 (file)
@@ -76,7 +76,6 @@ function mosaic_size_change()
     
     var mlayout = document.getElementById( "mosaic_layout" );
 
-    /* TODO: keep 'common' cells when resizing */
     while( mlayout.hasChildNodes() )
         mlayout.removeChild( mlayout.firstChild );
 
@@ -102,6 +101,8 @@ function mosaic_size_change()
         mtable.style.borderSpacing = mosaic_hborder + "px " +
                                      mosaic_vborder + "px";
 
+        var mtbody = document.createElement( 'tbody' );
+
         for( y = 0; y < mosaic_rows; y++ )
         {
             var mrow = document.createElement( 'tr' );
@@ -120,8 +121,9 @@ function mosaic_size_change()
                 mcell.appendChild( melt );
                 mrow.appendChild( mcell );
             }
-            mtable.appendChild( mrow );
+            mtbody.appendChild( mrow );
         }
+        mtable.appendChild( mtbody );
         mdt.appendChild( mtable );
         mlayout.appendChild( mdt );
     }