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

Event goes outside the calendar when dragging it down and up again (day view) #958

Closed
hugocaldeira opened this issue Apr 24, 2019 · 5 comments
Labels

Comments

@hugocaldeira
Copy link

Describe the bug
Hello,
In this last release (0.27.5) it was added the support of scrolling when dragging events, though when I drag an event down so that the calendar scrolls down and then I drag it back up, the event exceeds the top line of the calendar. From what I can see this its only happening on the day view, because in the week view it works perfectly.

Minimal reproduction of the problem with instructions

This issue can be reproduced in both the demos "Day view scheduler" and in the day view of "Kitchen sink".

Example of issue on demo "Day view scheduler":

  • Hold the event called "An event" at 5 AM and drag it down so the 12 AM line gets out of the view.
  • Without letting it go, scroll back up with the event and it goes way past the top line of the column, exceeding the name "John smith".
    Is it possible to limit the drag of the event until the first line of the day view? It works when the scroll is not used.
    Screenshots

Versions

  • @angular/core: 7.1.0
  • angular-calendar: 0.27.5
  • Browser name and version: Chrome 73.0.3683
@matts-bot
Copy link

matts-bot bot commented Apr 24, 2019

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

@mattlewis92
Copy link
Owner

Oh how strange, weird that it works on one view but not the other! Workaround for now is to stick to the older version of the drag and drop lib or use the week view with [daysInWeek]="1" set to emulate the day view: https://stackblitz.com/edit/angular-j5kje1?file=demo/component.ts

@hugocaldeira
Copy link
Author

hugocaldeira commented Apr 24, 2019 via email

@mattlewis92
Copy link
Owner

Fixed in 0.27.7!

@hugocaldeira
Copy link
Author

hugocaldeira commented Apr 29, 2019 via email

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

No branches or pull requests

2 participants