Jscalendar popup window is hidden in top of the screen for IE7 and XP
chly23 - February 14, 2007 - 07:56
| Project: | Javascript Tools |
| Version: | 5.x-0.2 |
| Component: | Jscalendar |
| Category: | bug report |
| Priority: | critical |
| Assigned: | goto.inder |
| Status: | closed |
Jump to:
Description
My operate system is Win XP professional, browser is IE7. When a web page is very long and the text field which use jscalendar module is in the bottom. I click the calendar icon, the popup window position is not correct. Especially, when I test it in HP laptop computer, the popup window of the calendar is hidden in the top of the screen, I must scroll up then see the popup window.

#1
Looks like a bug in jscalendar, and hence not something I can fix in the module.
#2
Has anyone discovered a resolution for this issue?
I am experiencing the same thing. The calendar appears but much higher in the page under IE7.
#3
I too am experiencing this and would like to know if there;'s a tweak or solution for the jscalendar code.
#4
I also encountered the same issue. I found the answer at:
http://sourceforge.net/tracker/index.php?func=detail&aid=1743970&group_i...
Hope this help.
#5
I think jquerycalendar is good.
http://marcgrabanski.com/code/jquery-calendar/
#6
Solution is here
I got same issue firstly.Whenever i click on clalendar icon it dosnt show me the calendar box in right position even sometimes i was not able to locate the box.Becoz jscalander dosnt detect for IE7 so we can either detect for IE7 or just use following method.
Open file:-
\sites\all\modules\jstools\jscalendar\lib\calendar_stripped.js
There search code:-
else{br.y+=window.scrollY;
br.x+=window.scrollX;
}
Insert following code after this:-
if (document.documentElement.scrollLeft ||document.documentElement.scrollLeft == 0){br.x +=
document.documentElement.scrollLeft;}
else {br.x += window.scrollX;}
if (document.documentElement.scrollTop ||
document.documentElement.scrollTop == 0){br.y +=
document.documentElement.scrollTop;}
else {br.y += window.scrollY;}
After testing This works for me in all browsers (IE6,IE7,Opera,Firefox).
Regards
-Inder Singh
http://indiapoly.com
#7
forgot to change status
#8
Automatically closed -- issue fixed for two weeks with no activity.
#9
This is should be committed to the module if possible. This fixed my issue.
#10
This has fixed my issue too, thanks. However, it not only fixed it, but I believe it did a good improvement overall on the positioning of jscalendar for both IE and FF. And for that reason, I think this patch belongs to the jscalendar issue queue.
Someone pointed a patch in jscalendar issue queue which fixes this issue exactly. Check it in: http://drupal.org/node/190524#comment-649202