Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editable events crossing days are not draggable, resizing them causes ui bugs #423

Closed
Spacarar opened this issue Jul 28, 2021 · 2 comments
Closed

Comments

@Spacarar
Copy link

I am using the calendar using the "week" view with editable events set to { title: true, drag: true, resize: true, delete: false, create: true } and I noticed that if an event crosses midnight it becomes immobile.

here is a sample event body that I copied

{
    "_eid": "25608_4",
    "start": "2021-07-30T04:14:00.000Z",
    "startTimeMinutes": 1334,
    "end": "2021-07-30T12:15:00.000Z",
    "endTimeMinutes": 375,
    "title": "",
    "content": "",
    "background": false,
    "allDay": false,
    "daysCount": 2
}

Further to this, if you resize the event so that it doesn't cross midnight anymore, the whole event gets misplaced outside of the calendar as shown below:

  • load calendar: correctly rendered (bottom of calendar shown)
    Screen Shot 2021-07-28 at 4 20 25 PM

  • load calendar: correctly rendered (top of calendar shown)
    Screen Shot 2021-07-28 at 4 20 31 PM

  • resize event to no longer pass midnight and it jumps off the calendar
    Screen Shot 2021-07-28 at 4 20 45 PM

@Spacarar
Copy link
Author

Forked a codepen from the documentation that reproduces this bug here: https://codepen.io/Wolfwood_/pen/oNWJRGx

This is the same codepen from #425 and will demonstrate both of these 2 issues.

@antoniandre
Copy link
Owner

Hi @Spacarar,

Indeed drag and drop does not support multiple day events as written in the documentation.

image

Also if you want to resize multiple day events horizontally, you need to add the resize-x (x axis) option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants