mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Use resizable interface on daycols too, fixes events not getting re-sized on some changes (WeekN - week)
This commit is contained in:
parent
87fca58c0b
commit
11b4a13b3d
@ -23,7 +23,7 @@
|
||||
*
|
||||
* @augments et2_DOMWidget
|
||||
*/
|
||||
var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizeable],
|
||||
{
|
||||
|
||||
attributes: {
|
||||
@ -863,7 +863,24 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
setDetachedAttributes: function(_nodes, _values) {
|
||||
|
||||
},
|
||||
|
||||
// Resizable interface
|
||||
/**
|
||||
* Resize
|
||||
*
|
||||
* Parent takes care of setting proper width & height for the containing div
|
||||
* here we just need to adjust the events to fit the new size.
|
||||
*/
|
||||
resize: function ()
|
||||
{
|
||||
if(this.disabled || !this.div.is(':visible') || this._parent.disabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Resize & position all events
|
||||
this.position_event();
|
||||
}
|
||||
});
|
||||
|
||||
et2_register_widget(et2_calendar_daycol, ["calendar-daycol"]);
|
||||
|
Loading…
Reference in New Issue
Block a user