* 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 d920178089
commit 5acc634a89
2 changed files with 6 additions and 0 deletions

View File

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

View File

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