Hello,
I'm trying for hours to understand why my FullCalendar is displaying only when I resize the browser. When first loading the page, only the header of FullCalendar is displaying, but all the content is not displayed.
I work with Laravel, Vue3, InertiaJS.
Here is my code.
<full-calendar :options="calendarOptions"></full-calendar>
...
import '@fullcalendar/core/vdom'
import FullCalendar from '@fullcalendar/vue3'
import dayGridPlugin from '@fullcalendar/daygrid'
import timeGridPlugin from '@fullcalendar/timegrid'
import listPlugin from '@fullcalendar/list'
import interactionPlugin from '@fullcalendar/interaction'
...
const calendarOptions = reactive({
locale: 'fr',
plugins: [ dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin ],
initialView: 'timeGridWeek',
headerToolbar: {
start: 'today prev,next',
center: 'title',
end: 'dayGridMonth,timeGridWeek,listWeek',
},
buttonText: {
today: 'Aujourdhui',
month: 'Mois',
week: 'Semaine',
day: 'Jour',
list: 'Liste',
},
weekNumbers: true,
weekText: 'S',
weekNumberCalculation: 'ISO',
slotMinTime: '08:00:00',
slotMaxTime: '20:00:01',
editable: true,
events: props.events,
eventResize: function(info) {
},
eventDrop: function(info) {
},
eventClick: function(info) {
}
})
If you have any idea why I need to resize the browser in order to let the calendar display, it would be great.
Thanks a lot.
Vincent