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.

Comments

nedjo’s picture

Looks like a bug in jscalendar, and hence not something I can fix in the module.

notauseranymore’s picture

Version: 4.7.x-1.x-dev » 5.x-0.6

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.

budda’s picture

Version: 5.x-0.6 » 4.7.x-1.x-dev

I too am experiencing this and would like to know if there;'s a tweak or solution for the jscalendar code.

cylan97’s picture

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.

chly23’s picture

I think jquerycalendar is good.
http://marcgrabanski.com/code/jquery-calendar/

inders’s picture

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

inders’s picture

Version: 4.7.x-1.x-dev » 5.x-0.2
Assigned: Unassigned » inders
Priority: Normal » Critical
Status: Active » Fixed

forgot to change status

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

amariotti’s picture

This is should be committed to the module if possible. This fixed my issue.

AmrMostafa’s picture

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

davermcl’s picture

Thanks goto.inder (#6) - that worked for me! (of course I had to switch from using calendar.js to calendar_stripped.js)

amariotti’s picture

How come this hasn't been committed yet? I commented on this 6 months ago! I recently upgraded and it broke my IE7 users all over again. Frustrating... wish I new how to roll patches. Anyone with experience with rolling patches needs to create one for this issue. Any takers?

strijee’s picture

thanks #6 works