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

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Feb 28 05:14:59 EST 2008


Author: abelevich
Date: 2008-02-28 05:14:59 -0500 (Thu, 28 Feb 2008)
New Revision: 6388

Modified:
   trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
Log:
override setWidth method from combolist. fix IE6

Modified: trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
--- trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js	2008-02-28 10:14:20 UTC (rev 6387)
+++ trunk/sandbox/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js	2008-02-28 10:14:59 UTC (rev 6388)
@@ -50,5 +50,14 @@
 			return;
 		}
 		return item;
+	},
+	
+	setWidth : function(width) {
+		var positionElem = this.listParent.childNodes[1];
+		var correction = parseInt(width) - Richfaces.getBorderWidth(positionElem.firstChild, "lr") - Richfaces.getPaddingWidth(positionElem.firstChild, "lr") + "px";
+		this.list.style.width = correction;
+		if (this.iframe) {
+			this.iframe.style.width = correction;			
+		}
 	}
 });




More information about the richfaces-svn-commits mailing list