From d357936c3134ae1b15d0ece3f451510f4806fbe9 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 17 Jan 2013 11:21:48 -0500 Subject: [PATCH] Fix DnD of events in Safari --- UI/WebServerResources/SchedulerUIDnD.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/WebServerResources/SchedulerUIDnD.js b/UI/WebServerResources/SchedulerUIDnD.js index 016ab362b..452cff420 100644 --- a/UI/WebServerResources/SchedulerUIDnD.js +++ b/UI/WebServerResources/SchedulerUIDnD.js @@ -778,6 +778,9 @@ SOGoEventDragPointerHandler.prototype = { var coordinates = this.currentCoordinates.getDelta(this.containerCoordinates); var container = SOGoEventDragUtilities().getEventsViewNode(); + if (container.clientWidth == 0) + /* a hack for Safari */ + container = $(container.id); if (coordinates.x < 0 || coordinates.x > container.clientWidth || coordinates.y < 0 || coordinates.y > container.clientHeight) coordinates = null;