mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Slight improvement for printing calendar in Firefox - it shows start of workday now instead of 00:00
This commit is contained in:
parent
daff3584b0
commit
d0bbcc98da
@ -1906,11 +1906,22 @@ var et2_calendar_timegrid = (function(){ "use strict"; return et2_calendar_view.
|
|||||||
// For some reason the column's method does not set it correctly in Chrome
|
// For some reason the column's method does not set it correctly in Chrome
|
||||||
day.header[0].style.width = day_width + '%';
|
day.header[0].style.width = day_width + '%';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop Firefox from scrolling the day to the top - this would break printing in Chrome
|
||||||
|
if (navigator.userAgent.match(/(firefox|safari|iceweasel)/i) && !navigator.userAgent.match(/chrome/i))
|
||||||
|
{
|
||||||
|
this.scrolling.children().css({
|
||||||
|
'transform':'translateY(-'+this.scrolling.scrollTop()+'px)',
|
||||||
|
'overflow': 'visible'
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset after printing
|
* Reset after printing
|
||||||
*/
|
*/
|
||||||
afterPrint: function() {}
|
afterPrint: function() {
|
||||||
|
this.scrolling.children().css({'transform':'', 'overflow':''});
|
||||||
|
}
|
||||||
});}).call(this);
|
});}).call(this);
|
||||||
et2_register_widget(et2_calendar_timegrid, ["calendar-timegrid"]);
|
et2_register_widget(et2_calendar_timegrid, ["calendar-timegrid"]);
|
Loading…
Reference in New Issue
Block a user