Changeset 1092
- Timestamp:
- 11/20/07 06:15:26 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fcktools.js
r1091 r1092 458 458 } 459 459 } 460 x += w.document.body.offsetLeft ; 461 y += w.document.body.offsetTop ; 460 461 // document.body is a special case when it comes to offsetTop and offsetLeft values. 462 // We can't just blindly sum it up in the while loop above. 463 if ( FCKDomTools.GetCurrentElementStyle( w, w.document.body, 'position') != 'static' ) 464 { 465 x += w.document.body.offsetLeft ; 466 y += w.document.body.offsetTop ; 467 } 462 468 return { "x" : x, "y" : y } ; 463 469 }
Note: See TracChangeset
for help on using the changeset viewer.
