mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Fix columns get no width when they are created while calendar is not the active tab.
This commit is contained in:
parent
1b5ea4fa57
commit
c3791daa37
@ -23,7 +23,7 @@
|
||||
*
|
||||
* @augments et2_DOMWidget
|
||||
*/
|
||||
var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizeable],
|
||||
var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
{
|
||||
|
||||
attributes: {
|
||||
@ -781,12 +781,6 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea
|
||||
}
|
||||
},
|
||||
|
||||
// Resizable interface
|
||||
resize: function (_height)
|
||||
{
|
||||
this.display_settings.titleHeight = (this.title.height()/_height)*100;
|
||||
},
|
||||
|
||||
/**
|
||||
* Code for implementing et2_IDetachedDOM
|
||||
*
|
||||
|
@ -598,6 +598,12 @@ var et2_calendar_timegrid = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResiz
|
||||
this.day_list = this._calculate_day_list(this.options.start_date, this.options.end_date, this.options.show_weekend);
|
||||
}
|
||||
var day_width = ( this.days.width()/this.day_list.length);
|
||||
if(!day_width || !this.day_list)
|
||||
{
|
||||
// Hidden on another tab, or no days for some reason
|
||||
var dim = egw.getHiddenDimensions(this.days, false);
|
||||
day_width = ( dim.w /Math.max(this.day_list.length,1));
|
||||
}
|
||||
|
||||
// Create any needed widgets - otherwise, we'll just recycle
|
||||
// Add any needed day widgets (now showing more days)
|
||||
|
Loading…
Reference in New Issue
Block a user