Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
Applying patch from 'Sina Salek' fixing position bug in IE7
Browse files Browse the repository at this point in the history
  • Loading branch information
farhadi committed Mar 9, 2009
1 parent 59d0d44 commit 367f7d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
2009-03-09 Ali Farhadi <ali@farhadi.ir>
* calendar.js: applying patch from 'Sina Salek' fixing position bug in IE7

-------------------- 1.3 [2009-02-04] --------------------- -------------------- 1.3 [2009-02-04] ---------------------
2009-02-04 Ali Farhadi <ali@farhadi.ir> 2009-02-04 Ali Farhadi <ali@farhadi.ir>
* calendar-setup.js: ability to automatically fill input field and display area on initialize. * calendar-setup.js: ability to automatically fill input field and display area on initialize.
Expand Down
4 changes: 3 additions & 1 deletion calendar.js
Expand Up @@ -1479,7 +1479,9 @@ Calendar.prototype.showAtElement = function (el, opts) {
var br = Calendar.getAbsolutePos(cp); var br = Calendar.getAbsolutePos(cp);
document.body.removeChild(cp); document.body.removeChild(cp);
if (Calendar.is_ie) { if (Calendar.is_ie) {
br.y += document.body.scrollTop; br.y += typeof window.pageYOffset != 'undefined' ? window.pageYOffset :
document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop :
document.body.scrollTop ? document.body.scrollTop : 0;
br.x += document.body.scrollLeft; br.x += document.body.scrollLeft;
} else { } else {
br.y += window.scrollY; br.y += window.scrollY;
Expand Down

0 comments on commit 367f7d5

Please sign in to comment.