Author: nathangray
New Revision: 54189
URL: http://svn.stylite.de/viewvc/egroupware?rev=54189&view=rev
Log:
Fix columns get no width when they are created while calendar is not the active tab.
Modified:
trunk/calendar/js/et2_widget_daycol.js
trunk/calendar/js/et2_widget_timegrid.js
Modified: trunk/calendar/js/et2_widget_daycol.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/js/et2_widget_daycol.js?rev=54189&r1=54188&r2=54189&view=diff
— trunk/calendar/js/et2_widget_daycol.js (original)
+++ trunk/calendar/js/et2_widget_daycol.js Fri Nov 6 16:52:06 2015
@@ -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 @@
}
},
- // Resizable interface
- resize: function (_height)
- {
-
this.display_settings.titleHeight = (this.title.height()/_height)*100; - },
- /**
- Code for implementing et2_IDetachedDOM
Modified: trunk/calendar/js/et2_widget_timegrid.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/js/et2_widget_timegrid.js?rev=54189&r1=54188&r2=54189&view=diff
— trunk/calendar/js/et2_widget_timegrid.js (original)
+++ trunk/calendar/js/et2_widget_timegrid.js Fri Nov 6 16:52:06 2015
@@ -598,6 +598,12 @@
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)
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs