Fix DnD of events in Safari

pull/8/head
Francis Lachapelle 2013-01-17 11:21:48 -05:00
parent e279db6431
commit d357936c31
1 changed files with 3 additions and 0 deletions

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;