From b1e80448892cc3a5d96357fd127da14d2e43b7b0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 5 Feb 2016 18:21:31 +0000 Subject: [PATCH] Fix 12h line labels sometimes did not line up --- calendar/js/et2_widget_timegrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index 45799c80bd..e0a3109153 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -723,7 +723,7 @@ var et2_calendar_timegrid = et2_calendar_view.extend([et2_IDetachedDOM, et2_IRes if(this.rowHeight < line_height) { // Rows too small for regular label frequency, use automatic calculation - time_label = ( i % Math.ceil(line_height / this.rowHeight) ) === 0 ? time : ''; + time_label = ( i % Math.ceil(line_height / this.rowHeight) ) === 0 ? time_label : ''; } html += '
'+time_label+"
\n"; }