I am trying to display the scheduler within a modal on a page. The modal is toggled with a button and when the modal opens up, only the ‘dhx_cal_date’ is displayed (16 Sept 2019 - 22 Sept 2019).
The moment I resize the modal or the full browser window (event just one pixel), the whole scheduler then displays along side the events.
This is the code for the modal:
<div id="modalA" class="modal_view_notification" tabindex="-1" aria-hidden="true" style="display: none;">
<div class="modal_body" style="height: 100%;">
<div class="row">
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100vh;'>
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"> </div>
<div class="dhx_cal_next_button"> </div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
</div>
<div class="dhx_cal_header"></div>
<div class="dhx_cal_data"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
scheduler.config.readonly = true;
scheduler.config.time_step = 30;
scheduler.config.hour_size_px = 88;
scheduler.config.show_loading = true;
scheduler.config.start_on_monday = true;
//Set the schedule to only be able to book events for the next 3 months
var dt = new Date();
dt.setMonth(dt.getMonth() + 3);
scheduler.config.limit_start = new Date();
scheduler.config.limit_end = dt;
scheduler.config.limit_view = true;
scheduler.init('scheduler_here', null, "week");
</script>