thekingsimo / jquery-week-calendar

Automatically exported from code.google.com/p/jquery-week-calendar
0 stars 0 forks source link

resize after drag not possible when no overlap allowed #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If overlap of events is not allowed, the following is not possible:

First drag an event to another timeslot (works) and then resizing it
(doesn't work).

Debugging show that there is a problem in the adjustForEventCollisions
function. When entering this loop

$weekDay.find(".wc-cal-event").not($calEvent).each(function() {

the event being resized is also considered for collisions. This means that
there's always a collision with itself.

Original issue reported on code.google.com by dieter.m...@gmail.com on 10 Jan 2010 at 3:14

GoogleCodeExporter commented 8 years ago
Apparently this was caused by an error in the eventDrop callback, which made 
the drop
function in addDroppableToWeekday to return before completion (and so the
calEvent.remove in the end did never execute).

This issue may be closed, my apologies for the inconvenience.

Original comment by dieter.m...@gmail.com on 10 Jan 2010 at 4:02