. Well:

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 #calendarContainerto 500px x 500px.

From now on I will explain what I want to do with the pictures.

enter image description here

I want to change the image above as shown below.

enter image description here

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; }

enter image description here

+4
source share
2 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>
Run codeHide result
+1
source

I solve it.

remove .fc-scroller {overflow-y: hidden! important; }

And added the code.

body 
{
  margin: 40px 10px;
  padding: 0;
  font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
}

It works very well.

+1
source

Source: https://habr.com/ru/post/1691027/


All Articles