* Calendar: Fix multiple all-day event rendering bug

If you had multiple all day, non-blocking events and switched from month to week view, if your window was small enough, some of them would be hidden.
This commit is contained in:
nathangray 2020-08-04 13:56:54 -06:00
parent 371bb59bdf
commit 3da73f95fb
2 changed files with 6 additions and 0 deletions

View File

@ -2396,6 +2396,8 @@ var CalendarApp = /** @class */ (function (_super) {
grid.iterateOver(function (widget) { grid.iterateOver(function (widget) {
if (row_index >= value.length) if (row_index >= value.length)
return; return;
// Clear height to make sure there's correct calculations
widget.div.css("height", "");
if (widget.set_show_weekend) { if (widget.set_show_weekend) {
widget.set_show_weekend(view.show_weekend(state.state)); widget.set_show_weekend(view.show_weekend(state.state));
} }

View File

@ -2752,6 +2752,10 @@ class CalendarApp extends EgwApp
row_index = 0; row_index = 0;
grid.iterateOver(function(widget) { grid.iterateOver(function(widget) {
if(row_index >= value.length) return; if(row_index >= value.length) return;
// Clear height to make sure there's correct calculations
widget.div.css("height","");
if(widget.set_show_weekend) if(widget.set_show_weekend)
{ {
widget.set_show_weekend(view.show_weekend(state.state)); widget.set_show_weekend(view.show_weekend(state.state));