[richfaces-svn-commits] JBoss Rich Faces SVN: r4465 - branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Dec 4 12:53:20 EST 2007


Author: vmolotkov
Date: 2007-12-04 12:53:19 -0500 (Tue, 04 Dec 2007)
New Revision: 4465

Modified:
   branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
Log:
layout was corrected

Modified: branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
===================================================================
--- branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js	2007-12-04 17:18:56 UTC (rev 4464)
+++ branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js	2007-12-04 17:53:19 UTC (rev 4465)
@@ -33,12 +33,14 @@
 			
 			width = LayoutManager.calculateWidth(curCell, headCell).colWidth;
 			if (i == contentCells.length - 1) {
-				width = width + (this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
+				if (this.contentDiv.clientWidth != 0) {
+					width = width + (this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
+				}
 			}
 			headCell.firstChild.style.width = width + "px";
 			headCell.style.width = width + "px";
 		}
-		this.headerTable.style.width = this.contentTable.offsetWidth + (this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
+		//this.headerTable.style.width = this.contentTable.offsetWidth + (this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
 	}
 }
 




More information about the richfaces-svn-commits mailing list