The sticky table header fix must be applied on single dates as well cause the calendar view width might be larger as well.

This commit is contained in:
Alex Tselegidis 2016-08-17 22:40:17 +02:00
parent d4360bef80
commit 3348175b91

View file

@ -56,13 +56,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
_createView(startDate, endDate); _createView(startDate, endDate);
// Horizontal scrolling fix for sticky table headers. // Horizontal scrolling fix for sticky table headers.
if ($(this).val() === 1) { stickyTableHeaderInterval = setInterval(function() {
clearInterval(stickyTableHeaderInterval); $(window).trigger('resize.stickyTableHeaders');
} else { }, 1000);
stickyTableHeaderInterval = setInterval(function() {
$(window).trigger('resize.stickyTableHeaders');
}, 1000);
}
}); });
$calendarToolbar.on('click', '#reload-appointments', function() { $calendarToolbar.on('click', '#reload-appointments', function() {