Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4930

Show
Ignore:
Timestamp:
09/03/06 20:16:06 (2 years ago)
Author:
madrobby
Message:

Prototype: Workaround a DOM API bug in Opera in Position.page(), fixes #2407, #5848

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/CHANGELOG

    r4924 r4930  
    11*SVN* 
     2 
     3* Workaround a DOM API bug in Opera in Position.page(), fixes #2407, #5848 [Thomas Fuchs] 
    24 
    35* Remove duplicate definition of Position.clone(), fixes #3765 [Thomas Fuchs] 
  • spinoffs/prototype/src/position.js

    r4924 r4930  
    117117    element = forElement; 
    118118    do { 
    119       valueT -= element.scrollTop  || 0; 
    120       valueL -= element.scrollLeft || 0;     
     119      if (!window.opera || element.tagName=='BODY') { 
     120        valueT -= element.scrollTop  || 0; 
     121        valueL -= element.scrollLeft || 0; 
     122      } 
    121123    } while (element = element.parentNode); 
    122124