From bb16d47c7c29f7b5c57b763ae63e9e7f6ffc71dc 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 df083d8cc2..2fc678385e 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++)