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

[BUG] args.allowed = false on onEventResizing is not working.

Asked by B.
8 years ago.

Hi, I noticed that setting args.allowed to false for onEventResizing is not working.

I tried the same thing for onEventMoving and onTimeRangeSelecting and they both work.

onEventResizing: function(args) {
args.allowed = false;
},

I'm using this as the source: http://javascript.daypilot.org/demo/js/daypilot-all.min.js?v=1658

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

args.allowed in onEventResizing is supported since build 1710. You can download it in the sandbox:

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

Comment posted by Bert
8 years ago.

Build 1710 seems pretty buggy. I'll wait it out, maybe find a different solution that doesn't require onEventResizing until then.

Thanks again for the quick response!

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

What kind of bugs do you see with the sandbox build? It's a development build but there should be no serious issues.

Comment posted by Bert
8 years ago.

I'm using the one for Angular

Chrome Version 43.0.2357.124 (64-bit)
Mac OS 10.10.3

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

1. Try resizing the event that is loaded. You'll notice that it didn't resize, but when you try resizing again, the shadow will look like it's been resized.
2. Try moving the event down two rows. Release mouse. Then move it two cells to the right. Release mouse. The event didn't move, but now if you try moving it again, the shadow will apear to the right of the event.

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

Thanks, let me check that.

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

It was the new encapsulated implementation of DayPilot.Date that hid the internal value and prevented angular.equals() from working properly.

It should be fixed now in build 1731:
http://javascript.daypilot.org/sandbox/scheduler/angularjs.html

Thanks for reporting the issue!

Comment posted by Bert
8 years ago.

Works great, thanks again!

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