From 4ca32f82a5c40e30b27044ab4e1a4477dcd879fa Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 14 Dec 2016 12:55:27 -0700 Subject: [PATCH] Fix events in planner view did not resize if window was resized --- calendar/js/et2_widget_planner_row.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/calendar/js/et2_widget_planner_row.js b/calendar/js/et2_widget_planner_row.js index 915ce37bb2..921fbff2d5 100644 --- a/calendar/js/et2_widget_planner_row.js +++ b/calendar/js/et2_widget_planner_row.js @@ -22,7 +22,7 @@ * * @augments et2_valueWidget */ -var et2_calendar_planner_row = (function(){ "use strict"; return et2_valueWidget.extend([et2_IDetachedDOM], +var et2_calendar_planner_row = (function(){ "use strict"; return et2_valueWidget.extend([et2_IResizeable], { attributes: { start_date: { @@ -708,21 +708,21 @@ var et2_calendar_planner_row = (function(){ "use strict"; return et2_valueWidget return pos; }, + // Resizable interface /** - * Code for implementing et2_IDetachedDOM + * Resize * - * @param {array} _attrs array to add further attributes to + * 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. */ - getDetachedAttributes: function(_attrs) { - - }, - - getDetachedNodes: function() { - return [this.getDOMNode()]; - }, - - setDetachedAttributes: function(_nodes, _values) { + resize: function () + { + if(this.disabled || !this.div.is(':visible') || this._parent.disabled) + { + return; + } + this.position_event(); } });}).call(this);