search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

While dragging an event mouse cursor will not be in proper position in Scheduler

Asked by Shivprasad Acharya
7 years ago.

while dragging an event in scheduler. some time mouse cursor will be at front, some time at back, some time properly over event. and its not consistent.
I couldn't find whats causing this problem.
anybody had the same problem? any solution or any help?
Thank You .

Comment posted by Dan Letecky [DayPilot]
7 years ago.

Very strange. I assume you use the timesheet view (viewType="Days") with non-business hours hidden, right?

It looks like a bug that has been fixed already (offset incorrectly calculated when non-business hours are hidden) - what version of DayPilot do you use?

Comment posted by Shivprasad Acharya
7 years ago.

DayPilot Pro
Copyright (c) 2005 - 2016 Annpoint s.r.o.
http://www.daypilot.org/
Use of this software is subject to license terms.
Version: 2200

No I didn't use viewType="Days" in my codes

Comment posted by Shivprasad Acharya
7 years ago.

I found why that problem is happening.
first scheduler has property set to
$scope.dp.scale = "Day";
and second scheduler has property set to
$scope.dpc.scale = "Hour";
So that when i drag an event from Scheduler1 to Scheduler2 its passing a Day event to Hour event from Scheduler1 to Scheduler2. So that while dragging an event ,the mouse cursor and event shadow is not aligned.
How to solve this Issue? Can anyone help me in this?.
(PS:- I want these 2 properties as it is
$scope.dp.scale = "Day"; and $scope.dpc.scale = "Hour";)
Thank you.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

This issue should be fixed in the latest sandbox build (8.2.2268):

http://javascript.daypilot.org/sandbox/

Let me know if the problem persists.

Comment posted by Shivprasad Acharya
7 years ago.

checked in the latest sandbox build (8.2.2268), but issue still the same.

Comment posted by Dan Letecky [DayPilot]
7 years ago.

Sorry - can you please try build 2269?

http://javascript.daypilot.org/sandbox/

Comment posted by Shivprasad Acharya
7 years ago.

Still the same Dan Letecky. Same Problem.
I used the following properties.
(For First Scheduler)
dp1.scale = "Day";
dp1.timeHeaders = [
{ groupBy: "Month", format: "MMM yyyy" },

{ groupBy: "Cell" , format: "dd"}
];
(For Second Scheduler)
dp2.timeHeaders = [

{ groupBy: "Day" ,format: "dd MMMM" },
{ groupBy: "Hour"},
{ groupBy: "Cell" }
];
dp2.cellDuration = 30;

with both has property "dp1.dragOutAllowed = true;" and "dp2.dragOutAllowed = true;"

Comment posted by Dan Letecky [DayPilot]
7 years ago.

I can no longer reproduce the problem since 2269. The following demo now temporarily uses a different scale for each of the Schedulers:

http://javascript.daypilot.org/sandbox/scheduler/eventmovingtwoschedulers.html

Do you see the problem there?

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.