alphasights / ember-calendar

An awesome Ember calendar, designed with composability and reusability in mind.
https://alphasights.github.io/ember-calendar/demo
MIT License
157 stars 47 forks source link

Overlapping Calendar Occurrences #20

Open chrismllr opened 9 years ago

chrismllr commented 9 years ago

Any solution to handling multiple occurrences that start at the same time? Currently they overlap and are inaccessible.

Arkham commented 8 years ago

Hey @chrismllr, we haven't implemented anything at this point, but since you can customize the inner block of the occurrence it is definitely doable. If you need some tips to get you started, feel free to ask!

jamesdixon commented 8 years ago

Has anyone come up with any sort of solution for this? It's somewhat of a deal-breaker in my case.

@Arkham you mentioned that you'd be willing to offer some tips on how to get this done? Care to share? :)

jamesdixon commented 8 years ago

@chrismllr did you ever find a solution to this?

makepanic commented 7 years ago

Hi, I started working on this in https://github.com/alphasights/ember-calendar/compare/develop...makepanic:issues/20

It uses the algorithm explained in https://stackoverflow.com/a/11323909/2131168 and looks like this:

20170703-160728

It currently requires a change in the occurence component to also be able to set left and width from the outside. I'm unsure if that's a good idea. Could someone maybe point me to a better location on where to store the left and width information?

In the WIP, the position calculation is also outside of the addon. I'll fix that later.

thanks

sholsapp commented 5 years ago

@makepanic have you made any progress on this since July? Is there a maintainer interested in getting this functionality merged in?