incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r576670 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js
Date Tue, 18 Sep 2007 02:59:52 GMT
Author: jmargaris
Date: Mon Sep 17 19:59:51 2007
New Revision: 576670

URL: http://svn.apache.org/viewvc?rev=576670&view=rev
Log:
remove the tbody and only add it AFTER adding the rows

Modified:
    incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js

Modified: incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js?rev=576670&r1=576669&r2=576670&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js Mon Sep 17 19:59:51 2007
@@ -320,7 +320,6 @@
 		}
 		
 		this.tbody = document.createElement("tbody");		
-		this.table.appendChild(this.tbody);
 		
 		//now populate the body rows
 		for (var i =0; i<this._rows.length; i++){
@@ -329,6 +328,7 @@
 		window.clearTimeout(this._rebuildRowsTask);
 		this._rebuildRowsTask = null;
 		
+		this.table.appendChild(this.tbody);
 		// resize columns in the case of new rows added
 		this._resizeTable ();
 		this._recolorAlternateRows();
@@ -902,9 +902,7 @@
 		}
 		if ( cell.style.textAlign ) {
 			td.align = cell.style.textAlign;
-		}
-		
-		// Add column CSS class
+		}		// Add column CSS class
 		// Use tdCount variable to locate column
 		if (this._table && this._table._columns && this._table._columns.length
> 0 ) {
 			dojo.html.addClass(td, this._table._columns[tdCount]._localCSSClassName);



Mime
View raw message