From 78129d5d29ed1c3f016af110dc35c3a1baa38d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 5 Dec 2019 21:34:49 +0100 Subject: [PATCH] Use automatic sizing of the content height of FullCalendar When there is a large amount of all day events, the agenda views do not display the time table because it computes a height of 0 (probably to keep the aspect ratio). issue8877 review260611002 --- bower.json | 2 +- src/view/calendar.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 0153b30d99..7be6bbc5ea 100644 --- a/bower.json +++ b/bower.json @@ -22,7 +22,7 @@ "gettext.js": "^0.5", "c3": "^0.6", "papaparse": "^5.0", - "fullcalendar": "^3.0", + "fullcalendar": "^3.1", "mousetrap": "^1.6", "bootstrap-rtl-ondemand": "^3.3.4-ondemand", "Sortable": "sortablejs#^1.8.4" diff --git a/src/view/calendar.js b/src/view/calendar.js index 419f906268..b3fb2d2951 100644 --- a/src/view/calendar.js +++ b/src/view/calendar.js @@ -46,6 +46,7 @@ header: header, timeFormat: 'H:mm', events: this.view.get_events.bind(this.view), + contentHeight: 'auto', locale: Sao.i18n.getlang().slice(0, 2), isRTL: Sao.i18n.rtl, themeSystem: 'bootstrap3',