My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 330: Adding event source can cause events to overlap in month view
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by yowza...@gmail.com, Feb 8, 2010
I've found that when I start getting lots of information on a calendar, 
that sometimes the events overlap and are displayed multiple times in 
incorrect positions.  This only seems to happen when I've first created the 
calendar, and then later added an additional feed after the fact.  If I 
skip to the next month, then skip back, it renders it correctly.  

This doesn't always happen, but seems to be more likely if there is a lot 
of events. Here is a snippet of my code:

var holidaySource = $.fullCalendar.gcalFeed(
	'http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.go
ogle.com/public/basic',
	{editable: false, className: 'holiday'});

var calendar = $('#avail-calendar');
calendar.fullCalendar({
	eventSources: [
		holidaySource,
		"/services/assignments",
		"/services/availabilities"
	],
	...
});

var feed = $.fullCalendar.gcalFeed("/another/gcal/feed", {
	draggable: false,
	className: 'gcal'
});
calendar.fullCalendar('addEventSource',feed);


Feb 8, 2010
#1 yowza...@gmail.com
This image shows what I mean.  I believe that some events are rendered, then 
additional events are added causing the calendar height to grow.  Those events are 
then re-rendered in the correct place down lower, but the original renders aren't 
removed.

bad.png
141 KB   View   Download
Feb 8, 2010
#2 yowza...@gmail.com
Once I move to March, then back to February, it renders properly, like this image.  
Just switching to week or day view and back to month view doesn't fix it (probably 
since you are just showing/hiding divs for each view).
good.png
107 KB   View   Download
Feb 8, 2010
#3 yowza...@gmail.com
One more thing.  I'm not sure it is caused by adding an additional source or not.  I 
haven't determined exactly what causes it and what doesn't, as it doesn't always 
happen.  With a certain combination of events, it will happen.  But with another 
combination of events, it won't.

Also, the source that I'm adding after the calendar is created actually has no events 
in it.  None of the events from that extra feed are shown on those images.  It is a 
personal calendar feed from google calendars and it would show up on the calendar in 
grey.  My code is actually retrieving the feed and adding the source, but there are 
just no events in the month to render.

Feb 12, 2010
#4 yowza...@gmail.com
Any ideas on this?  Is this a known bug? Anyone else having this problem?

I can also confirm that it happens even if I do not add another event source after the 
calendar is created.

Feb 26, 2010
Project Member #5 adamrs...@gmail.com
hi yowzator,
i will take a deeper look at this, but first, are you using the newest fullcalendar 
(1.4.5)? i fixed a bunch of bugs related to the calendar's size being off, and as a 
result, the events being rendered in wrong places 
(https://code.google.com/p/fullcalendar/issues/detail?id=341)
Feb 26, 2010
#6 yowza...@gmail.com
adam,

I was using 1.4.3 and upgrade to 1.4.5 does seem to have helped.  However, this was
an intermittent problem and would only show up some times.  So I'll need to use it
and test it some more to be sure.

Thanks!

Apr 26, 2010
Project Member #7 adamrs...@gmail.com
i think the upgrade to 1.4.5 will permanently solve your problem. i believe the issue 
was intermittent in 1.4.3 b/c it was affected by the height of the browser, the height 
of the document's content, and window's scrollbars, which would allseem intermittent 
if you didnt notice them. please let me know if any more problems
Status: Fixed
Aug 13, 2013
Project Member #8 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #9 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting