[richfaces-svn-commits] JBoss Rich Faces SVN: r5914 - trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Feb 7 09:59:47 EST 2008


Author: vmolotkov
Date: 2008-02-07 09:59:47 -0500 (Thu, 07 Feb 2008)
New Revision: 5914

Modified:
   trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
resize of list

Modified: trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-02-07 14:48:14 UTC (rev 5913)
+++ trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js	2008-02-07 14:59:47 UTC (rev 5914)
@@ -426,10 +426,9 @@
 		this.fieldDimensions = Richfaces.ComboBoxList.getElemXY(this.fieldElem);
 		this.fieldDimensions.height = this.fieldElem.parentNode.offsetHeight;
 
+		this.setSize();
 		this.setPosition(this.fieldDimensions.top, this.fieldDimensions.left, this.fieldDimensions.height);
 		
-		this.setSize();
-		
 		if (this.selectedItem) {
 			//was created new item list, so necessary to recreate selectedItem
 			this.doSelectItem(this.findItemBySubstr(this.selectedItem.innerHTML));
@@ -485,8 +484,10 @@
 			this.listParent.show();
 			
 			var itemHeight = item.offsetHeight;
+			
 			this.listParent.hide();
 			this.listParent.style.visibility = "visible";
+			
 			rowsAmount = this.getItems().length;
 			currentItemsHeight = itemHeight * rowsAmount;
 		}
@@ -504,6 +505,7 @@
 		if (Prototype.Browser.IE) {
 			height = parseInt(height) + this.LAYOUT_BORDER_V + this.LAYOUT_PADDING_V;
 		}
+		height = parseInt(height) + "px";
 		this.list.style.height = height;
 		if (this.iframe) {
 			this.iframe.style.height = height;			




More information about the richfaces-svn-commits mailing list