San*_*aka 5 css fullcalendar laravel-5 bootstrap-4
this is my controller
$calendar = Calendar::addEvents($events)
->setOptions([ //set fullcalendar options
'firstDay' => 1,
'height' => '200px',
'themeSystem' => 'bootstrap3',
'columnHeader' => false,
'aspectRatio' => 1
]);
Run Code Online (Sandbox Code Playgroud)
I change the height of container but cell size remains with a scrolling bar
小智 7
替换height为contentHeight应该有助于改变大小。
您可能需要超过 200 像素,因为它考虑到整个日历的高度,而不仅仅是一行。因此,如果设置为 1000,则每个部分行的高度将为 162;如果设置为 2000,则每个部分行的高度将为 329。
所以你只需要改变:
'height' => '200px',
Run Code Online (Sandbox Code Playgroud)
到
'contentHeight' => 1300,
Run Code Online (Sandbox Code Playgroud)
您不需要包含px.
| 归档时间: |
|
| 查看次数: |
1953 次 |
| 最近记录: |