CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How come the PopCalendarXP loaded in FireFox is mis-aligned when enclosed in a DIV with 'overflow: auto'?

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q.
View previous topic :: View next topic  
Author Message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: 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'? Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> CalendarXP F.A.Q. All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group