lib/gridupdater.js
/**
 * This requires newNumCols in order to size the new row appropriatesly
 * 
 * @function appendRows
 * @param {int} newNumRows New number of rows set
 * @param {int} origNumRows Number of rows before resize
 * @param {int} newNumCols New number of cols set
 */
This requires newNumCols in order to size the new row appropriatesly

@function appendRows
@param {int} newNumRows New number of rows set
@param {int} origNumRows Number of rows before resize
@param {int} newNumCols New number of cols set
This requires newNumCols in order to size the new row appropriatesly @function appendRows @param { int } newNumRows New number of rows set @param { int } origNumRows Number of rows before resize @param { int } newNumCols New number of cols set
function appendRows(newNumRows, origNumRows, newNumCols){
	var numRowstoAdd = newNumRows - origNumRows;
   for(var y=1; y<=numRowstoAdd; y++){
      $$('workLayout').addView({id:"workRow"+(origNumRows+y), type:'clean', css:'inactiveViewer',
      borderless:true, cols:[
         {id:"viewer1,"+(origNumRows+y), view:'iframe', src:'3Dmol frame.html',
            minWidth:250, minHeight:250,
            on:{'onAfterLoad':setCoord_callback(1,(origNumRows+y))}
         }
      ]});
      if(newNumCols > 1){
         appendCols((origNumRows+y),newNumCols,1)
      }
   }
}
function appendRows ( newNumRows , origNumRows , newNumCols ) { var numRowstoAdd = newNumRows - origNumRows ; for ( var y = 1 ; y <= numRowstoAdd ; y ++ ) { $$ ( 'workLayout' ) . addView ( { id : "workRow" + ( origNumRows + y ) , type : 'clean' , css : 'inactiveViewer' , borderless : true , cols : [ { id : "viewer1," + ( origNumRows + y ) , view : 'iframe' , src : '3Dmol frame.html' , minWidth : 250 , minHeight : 250 , on : { 'onAfterLoad' : setCoord_callback ( 1 , ( origNumRows + y ) ) } } ] } ) ; if ( newNumCols > 1 ) { appendCols ( ( origNumRows + y ) , newNumCols , 1 ) } } }
This requires newNumCols in order to size the new row appropriatesly
This requires newNumCols in order to size the new row appropriatesly