Author: abelevich
Date: 2008-04-29 11:02:12 -0400 (Tue, 29 Apr 2008)
New Revision: 8329
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/combolist.js
trunk/ui/combobox/src/main/templates/combobox.jspx
Log:
http://jira.jboss.com/jira/browse/RF-3255
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-04-29
14:53:01 UTC (rev 8328)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-04-29
15:02:12 UTC (rev 8329)
@@ -55,7 +55,8 @@
}
if (Richfaces.browser.isIE6) {
- this.comboList.createIframe(this.combobox, listWidth, this.combobox.id,
+ //http://jira.jboss.com/jira/browse/RF-3255
+ this.comboList.createIframe(this.comboList.listParent.parentNode, listWidth,
this.combobox.id,
"rich-combobox-list-width rich-combobox-list-scroll
rich-combobox-list-position");
}
this.combobox.component = this;
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-04-29
14:53:01 UTC (rev 8328)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-04-29
15:02:12 UTC (rev 8329)
@@ -208,12 +208,12 @@
//var top = 0 ;//= -4;
var top = fieldHeight;
- var topIframe = comBottom;
+// var topIframe = comBottom;
if (parseInt(listHeight) > (docHeight - comBottom)) {
if (fieldTop > (docHeight - comBottom)) {
top = 0 - parseInt(listHeight);
- topIframe = top;
+// topIframe = top;
//var upPos = true;
}
}
@@ -225,7 +225,8 @@
top = Richfaces.ComboBoxList.getElemXY(this.listParent).top +
this.fieldDimensions.height;
}*/
if (this.iframe) {
- this.iframe.style.top = topIframe + "px";
+// this.iframe.style.top = topIframe + "px";
+ this.iframe.style.top = top + "px";
this.iframe.style.left = 0 + "px";
}
},
@@ -390,6 +391,7 @@
iframe.id = "iframe" + comboboxId;
iframe.style.display = "none";
+ iframe.style.position = "absolute";
iframe.frameBorder="0";
iframe.scrolling="no";
// iframe.style.backgroundColor="#FFFFFF";
@@ -399,7 +401,8 @@
iframe.className = classes;
- parentElem.appendChild(iframe);
+// parentElem.appendChild(iframe);
+ parentElem.insertBefore(iframe,parentElem.firstChild);
this.iframe = $(iframe.id);
}
}
Modified: trunk/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/ui/combobox/src/main/templates/combobox.jspx 2008-04-29 14:53:01 UTC (rev 8328)
+++ trunk/ui/combobox/src/main/templates/combobox.jspx 2008-04-29 15:02:12 UTC (rev 8329)
@@ -206,7 +206,7 @@
x:passThruWithExclusions="value,name,type,id,styleClass,class,style,size,autocomplete,disabled,onchange">
<div class="rich-combobox-list-cord"></div>
- <div class="rich-combobox-font rich-combobox-shell"
style="width:#{width};z-index:1;">
+ <div class="rich-combobox-font rich-combobox-shell"
style="width:#{width};">
<input id="#{clientId}comboboxField"
name="#{clientId}comboboxField"
disabled="#{disabled}"
@@ -228,7 +228,7 @@
<div class="rich-combobox-strut rich-combobox-font"
style="width:#{correction}">Strut</div>
</div>
- <div id="#{clientId}listParent" class="rich-combobox-list-cord
#{listClass}" style="display:none; #{listStyle};z-index:
3;position:absolute;">
+ <div id="#{clientId}listParent" class="rich-combobox-list-cord
#{listClass}" style="display:none; #{listStyle}; position:absolute;">
<div class="rich-combobox-shadow">
<table id="#{clientId}shadow" cellpadding="0"
cellspacing="0" border="0">
<tr>