The "snap to grid" was enabled, but now it doesn't fill half a cell, but allows me to drop the event anywhere in the cell. This is not the desired behaviour
Comment posted by Dan Letecky [DayPilot] 4 years ago.
You'd have to change the logic in onEventResizing to adjust the start/end to your custom snap points.
The resulting event after resizing is correct, but the shadow is now drawing the size correctly.
Comment posted by Dan Letecky [DayPilot] 4 years ago.
If you turn off the snap to grid feature, the position (args.start etc.) will point to an exact point in the grid and it won't be adjusted to point to a cell edge.
So you will need to change the logic. Your original code would only work for snapToGrid = true:
args.start = args.start.addHours(-11);
For snapToGrid = false (and scale = "Day") it could look like this: