Author: a.izobov
Date: 2007-05-24 10:29:12 -0400 (Thu, 24 May 2007)
New Revision: 869
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
RF-205
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-05-24
14:09:14 UTC (rev 868)
+++
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-05-24
14:29:12 UTC (rev 869)
@@ -41,9 +41,14 @@
update.style.position = 'absolute';
Exadel.Position.smartClone(element, update,
options);
}
- Effect.Appear(update, {duration:0.15});
- if (options.iframeId) {
- Effect.Appear($(options.iframeId),
{duration:0.15});
+ if (!window.opera) {
+ Effect.Appear(update, {duration:0.15});
+ if (options.iframeId) {
+ Effect.Appear($(options.iframeId),
{duration:0.15});
+ }
+ } else {
+ // workaround for RF-205
+ Effect.Appear(update, {duration:0.15, to: 0.999999});
}
};
this.options.onHide = this.options.onHide ||
@@ -333,16 +338,16 @@
var entry = this.getEntry(this.index);
Element.addClassName(entry, this.options.selectedClass);
// Calc scroll position :
- var scroll =
document.getElementsByClassName("_suggestion_size_", this.update)[0]
- || this.update;
- var item = entry;
- var realOffset = 0;
- while (item && (item != scroll)) {
- realOffset += item.offsetTop;
- if (item.parentNode == scroll) break;
- item = item.offsetParent;
- }
if (this.keyEvent) {
+ var scroll =
document.getElementsByClassName("_suggestion_size_", this.update)[0]
+ || this.update;
+ var item = entry;
+ var realOffset = 0;
+ while (item && (item != scroll)) {
+ realOffset += item.offsetTop;
+ if (item.parentNode == scroll) break;
+ item = item.offsetParent;
+ }
this.keyEvent = false;
LOG.debug("Scroll = " + scroll.scrollTop
+ " , reallOffset= " + realOffset