Download & Extend

Jscalendar popup window is hidden in top of the screen for IE7 and XP

Project:Javascript Tools
Version:5.x-0.2
Component:Jscalendar
Category:bug report
Priority:critical
Assigned:inders
Status:closed (fixed)

Issue Summary

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

#1

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

#2

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.

#3

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.

#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

Version:4.7.x-1.x-dev» 5.x-0.2
Priority:normal» critical
Assigned to:Anonymous» inders
Status:active» fixed

forgot to change status

#8

Status:fixed» closed (fixed)

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

#11

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

#12

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?

#13

thanks #6 works

nobody click here