Fix DnD of events in Safari

This commit is contained in:
Francis Lachapelle committed 2013-01-17 11:21:48 -05:00
1 parent e279db6431
commit d357936c31
1 file changed
+3
+3
View File
@@ -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;