mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Calendar: fix incorrect rendering when switching between single week & multi-week views
egw.getHiddenDimensions() was incorrectly setting display based on title's current style
This commit is contained in:
parent
1fee91bdd7
commit
a0303dd003
@ -436,10 +436,10 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
const line_height = parseFloat(this.div.css('line-height'));
|
||||
let visible_lines = Math.floor(this.div.innerHeight() / line_height);
|
||||
|
||||
if (!this.title.height())
|
||||
if(!this.title[0].clientHeight)
|
||||
{
|
||||
// Handle sizing while hidden, such as when calendar is not the active tab
|
||||
visible_lines = Math.floor(egw.getHiddenDimensions(this.div).h / egw.getHiddenDimensions(this.title).h);
|
||||
// Handle sizing while hidden, such as when calendar is not the active tab
|
||||
visible_lines = 1;
|
||||
}
|
||||
visible_lines = Math.max(1, visible_lines);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user