» Forums
» The DHTML Calendar
» General discussion
» Calendar Positioning in IE
» Re: Calendar Positioning in IE
» Re[2]: Calendar Positioning in IE
| Re[2]: Calendar Positioning in IE ¶ | |
| 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! | |
(*) Discounts available for the above products!













