Author: pyaschenko
Date: 2009-04-09 11:31:59 -0400 (Thu, 09 Apr 2009)
New Revision: 13473
Modified:
trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.3.js
Log:
https://jira.jboss.org/jira/browse/RF-6682
Modified: trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.3.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.3.js 2009-04-09
15:17:58 UTC (rev 13472)
+++ trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.3.js 2009-04-09
15:31:59 UTC (rev 13473)
@@ -2121,11 +2121,16 @@
element = forElement;
do {
- if (!Prototype.Browser.Opera || (element.tagName &&
(element.tagName.toUpperCase() == 'BODY'))) {
- valueT -= element.scrollTop || 0;
- valueL -= element.scrollLeft || 0;
- }
- } while (element = element.parentNode);
+ if (!Prototype.Browser.Opera || (element.tagName &&
(element.tagName.toUpperCase() == 'BODY'))) {
+ valueT -= element.scrollTop || 0;
+ valueL -= element.scrollLeft || 0;
+ // RF: added by PY
+ if(!Prototype.Browser.WebKit && Element.getStyle(element,
'position') == 'fixed') {
+ break;
+ }
+ // RF: end
+ }
+ } while ((element = element.parentNode) && element.tagName); // RF: changed
by PY
return Element._returnOffset(valueL, valueT);
},