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
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

nedjo - February 16, 2007 - 05:14

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

#2

kaksisa - April 19, 2007 - 09:05
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

budda - May 23, 2007 - 16:17
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

cylan97 - July 17, 2007 - 23:37

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

chly23 - August 15, 2007 - 07:13

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

#6

goto.inder - June 3, 2008 - 10:22

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

goto.inder - June 3, 2008 - 10:34
Version:4.7.x-1.x-dev» 5.x-0.2
Priority:normal» critical
Assigned to:Anonymous» goto.inder
Status:active» fixed

forgot to change status

#8

Anonymous (not verified) - June 17, 2008 - 10:42
Status:fixed» closed

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

#9

amariotti - July 14, 2008 - 17:13

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

#10

alienbrain - July 16, 2008 - 14:41

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

 
 

Drupal is a registered trademark of Dries Buytaert.