From 46e1867e7f30ad273dcbbe13cfa4e35f3daa1a49 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 16 Apr 2019 10:51:51 +0200 Subject: [PATCH] Let single day view gets updated while printing --- calendar/js/et2_widget_timegrid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index bd99a99bf3..980a021711 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -2270,7 +2270,10 @@ var et2_calendar_timegrid = (function(){ "use strict"; return et2_calendar_view. } // update day widgets, if not on single day view - if(this.day_widgets.length > 1) + // + // TODO: Find out why don't we update single day view + // Let the single day view participate in print calculation. + if(this.day_widgets.length > 0) { var day_width = (100 / this.day_widgets.length); for(var i = 0; i < this.day_widgets.length; i++)