incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r534737 - in /incubator/xap/trunk/codebase/src/xap: bridges/dojo/TableBridge.js widgets/dojo/TreeTable.js
Date Thu, 03 May 2007 07:12:22 GMT
Author: mturyn
Date: Thu May  3 00:12:21 2007
New Revision: 534737

URL: http://svn.apache.org/viewvc?view=rev&rev=534737
Log:
XAP-395

Added "onRowInserted" callback to TreeTable, call it from TableBridge when a row is inserted;
so far just using it to resize sizer bars.

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

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js?view=diff&rev=534737&r1=534736&r2=534737
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js Thu May  3 00:12:21 2007
@@ -148,6 +148,7 @@
 	}
 	else if (childPeer instanceof xap.widgets.dojo.TableRow){
 		this.getPeer().insertRow(childPeer,-1);
+		this.getPeer().onRowInserted(childPeer, -1) ;
 	}
 };
 

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=534737&r1=534736&r2=534737
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js Thu May  3 00:12:21 2007
@@ -810,11 +810,17 @@
 	 * 
 	 */	
 	 
-	 onExpandRow : function(row, expanded){
-	 	this._recolorAlternateRows();
+	onExpandRow : function(row, expanded){
+		this._recolorAlternateRows();
+		this._redoSplitterStyling(1000) ;
+		//event hook
+	},
+	 
+	onRowInserted : function(rowWidget, index){
+		this._recolorAlternateRows();
 		this._redoSplitterStyling(1000) ;
 	 	//event hook
-	 },
+	},	 
 	 
 	onScrollCallback : function(event){
 		if (this.scrollDiv){
@@ -1046,9 +1052,16 @@
 			dojo.lang.setTimeout(this,this._redoSplitterStyling,delay) ;
 			return ;
 		}
+
 		var sizer = this.columnsSizer ;
+		
+		if(!sizer ){
+			return ;
+		}
+		
 		var sizerDomNode = sizer.domNode ;
-		sizerDomNode.style.width = this.domNode.offsetWidth +"px";
+
+		sizerDomNode.style.width = this.domNode.offsetWidth +"px";		
 		sizerDomNode.style.height = this.domNode.offsetHeight +"px";		
 		sizer.onResized(null) ;
 		
@@ -1132,7 +1145,7 @@
 		// background colour---IE6 under XP
 		var shouldSetTransparent = 
 			dojo.render.html.ie60 &&
-( dojo.render.html.UA.indexOf("Windows NT 5") == -1 ) ;
+( dojo.render.html.UA.indexOf("Windows NT 5.1") != -1 ) ;
 				
 
 		for(var ii=0; ii <= nSizers; ++ii){



Mime
View raw message