user8057627
user8057627

Reputation:

How to get rid of fullCalendar scrolling?

I wrapped the <div id="calendar"></div> area.

As follows:

<div id="calendarContainer">
  <div id="calendar"></div>
</div>

After that, I modified the width and height of the #calendarContainer to 500px x 500px.  

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

enter image description here

I want to change the picture above as shown below.

enter image description here

How do I fix css?

I'd like to remove the side scrolling as much as possible.

p.s) I did the following work. As a result, the scrolling is gone, but the heat is broken.

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

enter image description here

Upvotes: 6

Views: 3677

Answers (3)

RawSlugs
RawSlugs

Reputation: 708

This is what worked for me

.fc .fc-scroller-liquid-absolute {
    position: static !important;
}
.fc .fc-view-harness-active > .fc-view {
    position: static !important;
}
.fc .fc-view-harness {
    height: auto !important;
}

Upvotes: 1

user8057627
user8057627

Reputation:

I solve that.

delete .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's very well work.

Upvotes: 1

Mosh Feu
Mosh Feu

Reputation: 29337

It's a little hacky but maybe is the best you can achieve. The idea is to override the 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>

Upvotes: 3

Related Questions