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 which spans over multiple days #19

Open
mitomm opened this issue Apr 13, 2016 · 3 comments
Open

Event which spans over multiple days #19

mitomm opened this issue Apr 13, 2016 · 3 comments

Comments

@mitomm
Copy link

mitomm commented Apr 13, 2016

Hi Hermann,

I just noticed that if an event spans over multiple days (e.g. if longer than 24 hours), the event is displayed in both columns (of the same day).

Example: http://jsfiddle.net/hzftaq8a/2/

I guess a more expected behaviour would be that the event continues in:

  • the same column of the next day
    instead of:
  • the next column of the same day.

I would be willing to try to fix it myself (if possible without too much work), however I have no idea where to look. Do you have any hint on what I could try?

Best regards,

Tom

@mherrmann
Copy link
Owner

Hi Tom,

I think this will require some trickery. The way fullcalendar-columns displays the events is by tricking FullCalendar into drawing columns as consecutive days. Eg. a Monday with two columns is displayed by tricking FullCalendar behind the scenes into displaying a Monday and Tuesday (Monday=first col, Tue=second). In your example, the event that lasts from Monday to Tuesday would have to be displayed on the "virtual" Monday and Wednesday, but not on the virtual Tuesday (because that would be the second column of the "real" Monday). I suppose you would have to change the code so that the virtual days are reordered. Eg.: Suppose we have two columns and are displaying "real" Monday and Tuesday. Then this is currently done by tricking FC into displaying Monday, Tuesday, Wednesday, Thursday where the virtual Mon & Tues correspond to the real Monday's columns, similarly for Wed & Thurs. I think what you would have to do would be to change the order in which the virtual days are displayed to Mon, Wed, Tues, Thurs.

Cheers,
Michael

@DenDos
Copy link

DenDos commented Jan 20, 2017

Hi Hermann,
Please can you give a clue how to solve this issue. I tried to solve this problem myself, but i don't understand where to look. Please can you explain where in code i should fix that?

@mherrmann
Copy link
Owner

Sorry but I don't have time. I've given a "clue" above. I don't think there is an easy solution. It affects the entire code so I can't tell you "where in the code". Given my lack of time, I'm sorry but I really can't provide more help than that.

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

3 participants