Author: vmolotkov
Date: 2008-01-16 10:20:16 -0500 (Wed, 16 Jan 2008)
New Revision: 5426
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
component's structure is changed
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-16
15:19:56 UTC (rev 5425)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-16
15:20:16 UTC (rev 5426)
@@ -504,11 +504,15 @@
if (parseInt(listHeight) > (docHeight - comBottom)) {
if (fieldTop > (docHeight - comBottom)) {
top -= (parseInt(listHeight) + fieldHeight);
+ var upPos = true;
}
}
this.listParent.style.top = top + "px";
this.listParent.style.left = 0 + "px";
- this.iframe.style.top = Richfaces.ComboBoxList.getElemXY(this.listParent).top +
this.fieldDimensions.height + "px";
+ if (!upPos) {
+ top = Richfaces.ComboBoxList.getElemXY(this.listParent).top +
this.fieldDimensions.height;
+ }
+ this.iframe.style.top = top + "px";
this.iframe.style.left = Richfaces.ComboBoxList.getElemXY(this.listParent).left +
"px";
},