2010-01-16 14:29:18 -08:00
|
|
|
|
|
|
|
|
|
aspectRatio *1.3*
|
|
|
|
|
=================
|
|
|
|
|
|
|
|
|
|
Determines the width-to-height aspect ratio of the calendar.
|
|
|
|
|
|
|
|
|
|
<div class='spec' markdown='1'>
|
|
|
|
|
Float, *default*: `1.35`
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
A calendar is a block-level element that fills its entire avaiable width.
|
|
|
|
|
The calendar’s height, however, is determined by this ratio of width-to-height.
|
|
|
|
|
(Hint: larger numbers make smaller heights).
|
|
|
|
|
|
|
|
|
|
The following example will initialize a calendar who's width is twice its height:
|
|
|
|
|
|
|
|
|
|
$('#calendar').fullCalendar({
|
|
|
|
|
aspectRatio: 2
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
2010-01-17 20:20:01 -08:00
|
|
|
|
Setter
|
2010-01-16 14:29:18 -08:00
|
|
|
|
------
|
|
|
|
|
|
2010-01-17 20:20:01 -08:00
|
|
|
|
You can dynamically set a calendar's aspectRatio after initialization:
|
2010-01-16 14:29:18 -08:00
|
|
|
|
|
|
|
|
|
$('#calendar').fullCalendar('option', 'aspectRatio', 1.8);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='version-info' markdown='1'>
|
|
|
|
|
The *setter* only works in version 1.4.2 and later.
|
|
|
|
|
</div>
|