calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 7:17 pm Post subject: [FlatCalendarXP]How to set the calendar to fill the width of the page? |
|
|
Since verion 9.0.195, when the giCellWidth option is set to -1, the calendar engine will smartly pick up a value at its best effort to make sure the total width of the entire calendar fit in with the direct parent tag (the one enclosing the calendar tag). However, the minimum width of the calendar is still guarded by the width property of the <iframe> calendar tag, which means the total width will never be less than it.
So, to implement a calendar that has a minimum width of 50 and fits in with the page width otherwise, you just need the following code in page:
Code: | <div style="width:100%">
<iframe width="50" ... ></iframe>
</div> |
and the following in the theme-name.js file:
Code: | var giCellWidth=-1; |
Of course, you may use table tag instead of div tag to enclose the calendar.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|