View previous topic :: View next topic |
Author |
Message |
jdonaldson
Joined: 30 Jul 2007 Posts: 6
|
Posted: Wed Oct 10, 2007 3:49 pm Post subject: why the cell grow when I click on them |
|
|
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Oct 10, 2007 11:42 pm Post subject: |
|
|
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 |
|
|
jdonaldson
Joined: 30 Jul 2007 Posts: 6
|
Posted: Sun Oct 14, 2007 4:48 pm Post subject: test url |
|
|
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Sun Oct 14, 2007 7:20 pm Post subject: |
|
|
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 |
|
|
|