Calendar: Fix events that are hidden because there are too many did not have a tooltip

This commit is contained in:
nathan 2023-06-13 15:03:01 -06:00
parent 7e296ba12b
commit f0361f5230

View File

@ -752,12 +752,10 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
{ {
this.event_wrapper.css('overflow', 'hidden'); this.event_wrapper.css('overflow', 'hidden');
} }
this._hidden_indicator(event, false, function() { this._hidden_indicator(event, false, function()
{
app.calendar.update_state({view: 'day', date: day.date}); app.calendar.update_state({view: 'day', date: day.date});
}); });
// Avoid partially visible events
// We need to hide all, or the next row will be visible
event.div.hide(0);
} }
// Completely out of view, show indicator // Completely out of view, show indicator
else if (hidden.completely) else if (hidden.completely)
@ -857,7 +855,7 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
indicator.attr('data-hidden_count', count); indicator.attr('data-hidden_count', count);
if(this.display_settings.granularity === 0) if(this.display_settings.granularity === 0)
{ {
indicator.append(event.div.clone()); indicator.append(event.div);
indicator.attr('data-hidden_label', day.egw().lang('%1 event(s) %2', indicator.attr('data-hidden_count'), '')); indicator.attr('data-hidden_label', day.egw().lang('%1 event(s) %2', indicator.attr('data-hidden_count'), ''));
} }
else if (!fixed_height) else if (!fixed_height)