forked from extern/egroupware
Calendar - Fix planner view in Firefox sometimes had headers mis-aligned with columns
Deferred loading caused scrollbar width calculation issues.
This commit is contained in:
parent
97af627279
commit
fbeefaf788
@ -1924,6 +1924,14 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
|
||||
// Add 1 to keep the scrollbar, otherwise we need to recalculate the
|
||||
// header widths too.
|
||||
this.grid.height(this.rows[0].scrollHeight+1);
|
||||
|
||||
// Adjust header if there's a scrollbar - Firefox needs this re-calculated,
|
||||
// otherwise the header will be missing the margin space for the scrollbar
|
||||
// in some cases
|
||||
if(this.rows.children().last().length)
|
||||
{
|
||||
this.gridHeader.css('margin-right', (this.rows.width() - this.rows.children().last().width()) + 'px');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user