incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r532047 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js
Date Tue, 24 Apr 2007 19:28:33 GMT
Author: mturyn
Date: Tue Apr 24 12:28:32 2007
New Revision: 532047

URL: http://svn.apache.org/viewvc?view=rev&rev=532047
Log:
1.) Added "nowrap" style to all cells as they're added---leaving it in code, as opposed to
a style sheet, in case we want cell-by-cell control of this with (e.g.) a "wrap" attribute.
2.) Expanding a row now extends the resizer line down to the new bottom:

See:
https://issues.apache.org/jira/browse/XAP-394
https://issues.apache.org/jira/browse/XAP-395

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=532047&r1=532046&r2=532047
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/TreeTable.js Tue Apr 24 12:28:32 2007
@@ -408,7 +408,7 @@
 
 			cell.style.whiteSpace = "nowrap";
 			// If overflow isn't hidden, then 
-			// column cannot by shrunk below 
+			// column cannot be shrunk below 
 			// width of the contents:
 			cell.style.overflow="hidden" ;
 			
@@ -761,6 +761,7 @@
 	 
 	 onExpandRow : function(row, expanded){
 	 	this._recolorAlternateRows();
+		this._redoSplitterStyling(1000) ;
 	 	//event hook
 	 },
 	 
@@ -888,8 +889,7 @@
 		var splitterContainer = this.splitterContainer ;
 		var splitterContainerStyle = splitterContainer.style ;		
 		splitterContainerStyle.position = "absolute" ;
-		splitterContainerStyle.top = "0px" ;		
-		
+		splitterContainerStyle.top = "0px" ;
 		
 		var box = dojo.html.getContentBox(this.headerRow) ;
 		box.height = this.domNode.scrollHeight ;
@@ -1005,7 +1005,8 @@
 //			--sizerDivs.length ;
 //		}
 // Bring back, modified to be less effective but harmless, 
-// without it get artifacts under IE6:
+// without it we get artifacts (sizers at left==0)
+// under IE6:
 		for( var ii=nSizers; ii< sizerDivs.length; ++ii){
 			sizerDivs[ii].style.visibility="hidden" ;
 		}
@@ -1272,7 +1273,7 @@
 		this._cellInfo.push(cellInfo);
 		var td = document.createElement("td");
 		this.domNode.appendChild(td);
-		//td.style.whiteSpace = "nowrap";
+		td.style.whiteSpace = "nowrap";
 		td.style.overflow = "hidden";		
 		td.align="left";
 		td.valign = "top";



Mime
View raw message