Re: Fixed a bug when displaying calendar on IE7
2007/06/15 16:54
Viewed 7329 times
Replies: 1/3

I Fixed the bug on my way, tested on IE7, IE6(Multiple IE), FF, and SAFARI, with those lines :

if (document.body.scrollLeft){br.x += document.body.scrollLeft;}
br.x += window.scrollX;
if (document.body.scrollTop){br.y += document.body.scrollTop;}
br.y += window.scrollY;

and it works.

Re[2]: Fixed a bug when displaying calendar on IE7
2007/10/31 12:24
Viewed 6851 times
Replies: 2/2

Dave, did you mean like this ?:
if (Calendar.is_ie7) {
br.y += window.scrollY;
br.x += window.scrollX;
}
else if (Calendar.is_ie) {
br.y += document.body.scrollTop;
br.x += document.body.scrollLeft;
}
else {
br.y += window.scrollY;
br.x += window.scrollX;
}

If I'm dong it right, this is better, except in IE7 when the positioning element is at the bottom of the screen, then the calendar is also, half off the screen. Seems to be ok in IE6 & FF.
For Elyoukey's fix, this seems to occur in all the above browsers.
We are so close now...

last
Re[3]: Fixed a bug when displaying calendar on IE7
2007/11/01 15:26
Viewed 8709 times
Replies: 0/0

of course, one can get around this issue by setting the calender to align to the top of the element, if you know the element isn't going to be at the top of the page.

last
Re[3]: Fixed a bug when displaying calendar on IE7
2008/05/08 05:32
Viewed 3868 times
Replies: 0/0

hi, i'm facing this problem also..
but i dun understand.. where should i put the code?
and wat is br?
i duno abt javascript..
thanks for helping...

last
Google