Calendar Positioning in IE
2004/10/11 22:49
Viewed 53911 times
Replies: 2/5
by rhys

I am having some difficulty getting my calendar to position correctly in IE6 on WinXP.
It seems that any <br /> tags in the page above the calendar button upset the positioning. making the calendar popup lower down the page. Is there some way i can workaround (apart from removing the <br />s)?

Re: Calendar Positioning in IE
2004/10/11 23:50
Viewed 57823 times
Replies: 1/1
by rhys

hmmm... i did a bit more checking and it appears that the strangeness i was seeing was to do with <br /> tags in IE, but only when combined with some dodgy css.. more details when i work it out, but for now please don't worry about getting a solution.

Thanks,
Rhys

last
Re[2]: Calendar Positioning in IE
2004/10/12 17:19
Viewed 55414 times
Replies: 0/0
by rhys

right, as it turns out, IE doesn't calculate offsets correctly if the container box is positioned using relative and the element having the offset determined isn't also positioned using relative (or absolute.. it breaks in a different way with absolute). What happens is that IE returns the offset relative to the body, but still returns the container box as the offsetParent... confused? you will be.

What i did was update the getAbsolutePos() method to take this into account and stop recursing when it hits an element in a relatively positioned box and no (static/fixed) positioning itself.

The other broken bit is this: IE will append the body offset to the last absolute positioned element with a relatively positioned box between it and the body.. not that IE will give you the body offset mind :( i can't think of a way to fix this and for now, will just make sure that none of my body elements have and margins/padding... gah!

last
Re: Calendar Positioning in IE
2004/12/09 14:50
Viewed 48187 times
Replies: 2/2

I am having a similar problem except when I view my page locally (IE 6,XP Pro, IIS). The calendar is displaying horizontally across the entire screen. Also in Firefox 1.0(locally - IIS and Tomcat 5), there is a big empty space next to the 'next year' and 'next month' buttons, which are stacked instead of side by side. I can fix the IE problem in the style sheet(*-system.css) but it doesn't fix the Firefox issue and they may be related (as if I know..).

I hardly ever post to forums but it's a great calendar and we really want to use it in our web app.

last
Re[2]: Calendar Positioning in IE
2004/12/09 14:53
Viewed 51436 times
Replies: 0/0

hmmm, maybe I should have added this to the Re: Resizing thread. oops, anyway, help with be greatly appreciated

last
Re[2]: Calendar Positioning in IE
2005/08/17 03:38
Viewed 39924 times
Replies: 0/0

I have the same exact problem. I am using DIVs heavily already tried the hack to make sure is on top and that is not the problem.. resizing it does help on mozilla but not IE.

last
Google