var mlayout = document.getElementById( "mosaic_layout" );
- /* TODO: keep 'common' cells when resizing */
while( mlayout.hasChildNodes() )
mlayout.removeChild( mlayout.firstChild );
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' );
mcell.appendChild( melt );
mrow.appendChild( mcell );
}
- mtable.appendChild( mrow );
+ mtbody.appendChild( mrow );
}
+ mtable.appendChild( mtbody );
mdt.appendChild( mtable );
mlayout.appendChild( mdt );
}