calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Fri Feb 18, 2005 4:31 am Post subject: How come the PopCalendarXP loaded in FireFox is mis-aligned when enclosed in a DIV with 'overflow: auto'? |
|
|
It's because Gecko (Mozilla and FireFox) doesn't include the DIV as part of the offset chain.
To work around, you need to give the DIV tag an ID, e.g.
Code: | <div id="divId">
<form name="demoform">
<input name="dc" type="text">
</form>
</div> |
and pass in the scroll-offset of the DIV when you summon the calendar. e.g.
Code: | onclick="var div=document.getElementById('divId');if(self.gfPop)gfPop.fPopCalendar(document.demoform.dc, null,null,null, gfPop.GK?[0-div.scrollLeft,0-div.scrollTop]:null);return false;" |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|