Author: abelevich
Date: 2008-03-06 07:39:55 -0500 (Thu, 06 Mar 2008)
New Revision: 6591
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
Log:
fix shadow height
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
===================================================================
---
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-03-06
12:05:46 UTC (rev 6590)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-03-06
12:39:55 UTC (rev 6591)
@@ -136,15 +136,7 @@
//this.shadowElem.style.visibility = "hidden";
this.listParent.show();
- if (this.shadowElem) {
- if (!Richfaces.browser.isIE6) {
- // shadow offset
- this.shadowElem.style.width = (parseInt(this.width) + 7) + "px";
- this.shadowElem.style.height = (parseInt(height) + 9)+ "px";
- } else {
- this.shadowElem.style.visibility = "hidden";
- }
- }
+
var itemHeight = item.offsetHeight;
@@ -170,6 +162,15 @@
}
height = parseInt(height) + "px";
this.list.style.height = height;
+ if (this.shadowElem) {
+ if (!Richfaces.browser.isIE6) {
+ // shadow offset
+ this.shadowElem.style.width = (parseInt(this.width) + 7) + "px";
+ this.shadowElem.style.height = (parseInt(height) + 9)+ "px";
+ } else {
+ this.shadowElem.style.visibility = "hidden";
+ }
+ }
if (this.iframe) {
this.iframe.style.height = height;
}
Show replies by date