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 

why the cell grow when I click on them

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related
View previous topic :: View next topic  
Author Message
jdonaldson



Joined: 30 Jul 2007
Posts: 6

PostPosted: Wed Oct 10, 2007 3:49 pm    Post subject: why the cell grow when I click on them Reply with quote

I use FlatCalendarXP for short time, and I think it's pretty good except one question, why do the cells grow when they are clicked?
Each time any of the cells are clicked, the cells become wider. This happens in both IE and Firefox.

Please make a response asap.
Thanks.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Wed Oct 10, 2007 11:42 pm    Post subject: Reply with quote

We have just gone through all the demos and the themes, but didn't find any behavior like you described.

Are you using some special code? Would you mind providing us an online link to test?

Please also indicate which operating system you are using, XP, Vista or MacOS? Thanks.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
jdonaldson



Joined: 30 Jul 2007
Posts: 6

PostPosted: Sun Oct 14, 2007 4:48 pm    Post subject: test url Reply with quote

I had set up a test site, you can open this url to view it, http://www.shenhua2008.com/project/MockupSiblingDemo.asp
when you click on calendar cell, you'll notice that.
I use your sample file and did minor changes.
Please check it out and tell me why.

Thanks.
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Sun Oct 14, 2007 7:20 pm    Post subject: Reply with quote

Take a look at the following option in your mockup.js:
Code:
var giCellWidth=NN4?68:-1;

It means for all non-netscape4 browsers, the width of cell should be auto-adjusted so as to ensure the width of the entire calendar fits in with the calendar's direct parent tag.

In your case, the direct parent tag is a <td>, which does not provide stable width values due to the margin variances. So there are 2 ways to solve it:

1. In your html, surround the big calendar's <iframe> tag with a pair of <div style="width:500px"></div>. Of course you may change the width to meet your needs.

2. Or, you may go change the giCellWidth to a fixed value instead of -1. e.g.
Code:
var giCellWidth=68;

_________________
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 -> FlatCalendarXP Related 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