How to get rid of scrolling fullCalendar?
I wrapped the area <div id="calendar"></div>
.
Well:
<div id="calendarContainer">
<div id="calendar"></div>
</div>
After that, I changed the width and height #calendarContainer
to 500px x 500px.
From now on I will explain what I want to do with the pictures.
I want to change the image above as shown below.
How do i fix css?
I would like to remove side scrolling as much as possible.
ps) I did the following work. As a result, the scroll disappeared, but the heat broke.
.fc-scroller { overflow-y: hidden !important; }
+4
user8057627
source
share2 answers
This is a bit of hacks, but perhaps this is the best you can achieve. The idea is to override styles.
$('#calendar').fullCalendar();
#calendarContainer {
width: 500px;
height: 500px;
}
.fc-scroller {
height: auto !important;
}
.fc-head .fc-widget-header {
margin-right: 0 !important;
}
.fc-scroller {
overflow: visible !important;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.8.0/fullcalendar.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.8.0/fullcalendar.min.js"></script>
<div id="calendarContainer">
<div id="calendar"></div>
</div>
+1