mattlewis92 / angular-calendar

A flexible calendar component for angular 15.0+ that can display events on a month, week or day view.
https://mattlewis92.github.io/angular-calendar/
MIT License
2.73k stars 868 forks source link

2 different events on the same spot. #1250

Open yaniv14 opened 4 years ago

yaniv14 commented 4 years ago

Describe the bug

I have 2 different events, both start on the same time but ends in different time. both got the same % width and left position %. See attached screenshot.

Please point me to where I should look for a fix.

Screenshots

image1 image2

Versions

matts-bot[bot] commented 4 years ago

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 sponsoring me

mattlewis92 commented 4 years ago

Hey there, sorry to hear you're having issues, please could you provide a minimal repro on stackblitz that shows your issue. You can fork a starter template from any of the demos. Thank you! 😄

yaniv14 commented 4 years ago

It will easier for me to try debug it myself if you can point me to which part of the code handle the calculation of left % and event width % in a day/week view. In my case I am using it RTL so I had to make some css modifications. Also I did a lot of template modifications so I am not sure if its happens because of something I have done.

p.s: this is only happens in one case (that I have noticed so far).

mattlewis92 commented 4 years ago

Ah ok, the logic for positioning events is inside the calendar-utils package here and here. If might help if you make a test case like this and then you can see if the output is correct or not by inspecting the snapshot.

yaniv14 commented 4 years ago

Thanks for the clear detailed reply. I won't be able to check it for at least 3 weeks. I will reply with my results as soon as possible.

yaniv14 commented 4 years ago

btw, do you think that this calculation might "fail" because of RTL?

mattlewis92 commented 4 years ago

btw, do you think that this calculation might "fail" because of RTL?

I have no idea really without being able to see a way of reproducing it