Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change row height in FullCalendar?

this is my controller

      $calendar = Calendar::addEvents($events)
      ->setOptions([ //set fullcalendar options
          'firstDay' => 1,
          'height' => '200px',
          'themeSystem' => 'bootstrap3',
          'columnHeader' => false,
          'aspectRatio' => 1

      ]);

I change the height of container but cell size remains with a scrolling bar

i want to change my calendar like this

like image 540
Sanjani Gunathilaka Avatar asked Dec 08 '17 08:12

Sanjani Gunathilaka


1 Answers

Replacing height with contentHeight should help change the size.

You might need more than 200px because it takes into account the whole calendars height rather than just one row. So if it was set to 1000, each section row would have a height of 162 or 329 if it was set to 2000.

So you'll just need to change:

'height' => '200px',

to

'contentHeight' => 1300,

You don't need to include the px.

like image 173
SWC Avatar answered Oct 18 '22 14:10

SWC