Right align 12 hour times

This commit is contained in:
Nathan Gray 2016-01-27 18:21:14 +00:00
parent 174387b958
commit 8e56039948

View File

@ -707,6 +707,10 @@ var et2_calendar_timegrid = et2_calendar_view.extend([et2_IDetachedDOM, et2_IRes
}
var time_label = (typeof show[granularity] === 'undefined' ? t % 60 === 0 : show[granularity].indexOf(t % 60) !== -1) ? time : '';
if(time_label && egw.preference("timeformat") == "12" && time_label.split(':')[0] < 10)
{
time_label ='&nbsp;&nbsp;' + time_label;
}
if(this.rowHeight < line_height)
{
// Rows too small for regular label frequency, use automatic calculation