incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r541093 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js
Date Wed, 23 May 2007 21:25:06 GMT
Author: mturyn
Date: Wed May 23 14:25:05 2007
New Revision: 541093

URL: http://svn.apache.org/viewvc?view=rev&rev=541093
Log:
There was yet another spot in _fixColumnWidths() that assumed 
we had an i'th column in both the header and body tables when 
we might not yet (in the middle of initialisation).

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?view=diff&rev=541093&r1=541092&r2=541093
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js Wed May 23 14:25:05 2007
@@ -116,7 +116,7 @@
 		this._created = true ;	
 // debugging
 // debug 
-window.foo = this ;
+//window.foo = this ;
 
 
 //if(location.href.indexOf("nested")>-1 ){
@@ -347,6 +347,8 @@
 	
 
 		var firstRow = this._rows.length>0?this._rows[0].domNode:null;
+		
+		
 		for (var i=0; i<this._columns.length;i++){
 			// Note: ends with "px":
 			var width = this._columns[i].getBestWidth();
@@ -383,7 +385,7 @@
 										widthObj
 											) ;
 				}
-				if(this.table.childNodes[i]){
+				if(this.table.childNodes[i] && this.headerTable.childNodes[i] ){
 					widthObj = dojo.html.getMarginBox( this.headerTable.childNodes[i]) ;
 					delete widthObj.height ;															
 					dojo.html.setMarginBox(



Mime
View raw message