My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 833: Maximum event height in month view
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Feb 2011


Sign in to add a comment
 
Reported by oliver.k...@gmail.com, Feb 15, 2011
This issue has some similarities to 691 and 304. I have many events per day in month view and they all have a fair amount of detail. I don't want to limit the no. shown per day, I'd rather see them all but it would be good to be able to limit the max. height of each event and show the full detail on a hover, e.g. with a tooltip.

In the meantime, I'll use something like this example:

http://arshaw.com/fullcalendar/docs/event_rendering/eventRender/

but I'll have to alter the event feed data based on whether the view is month or week (for week view, I want all the detail in the title).

A Google-like ability to show all month view events as one or two lines high (Google only do one) would be perfect.

Screenshot of problem attached.

Regards
Oliver Kohll
month.png
331 KB   View   Download
Feb 15, 2011
Project Member #1 adamrs...@gmail.com
seems like your best bet is to use eventRender, but do different things based on the view...

$('#calendar').fullCalendar({
    eventRender: function(event, element, view) {
        if (view.name == 'month') {
            //...
        }else{
            //...
        }
    }
});
Status: Done
Feb 16, 2011
#2 oliver.k...@gmail.com
Great, thanks. This works for me as a start:

    eventRender: function(event, jqElement, view) {
	  if (view.name == 'month') {
        jqElement.height(15);
  	    jqElement.qtip({
          content: event.title
        });
      }
    }
Sign in to add a comment

Powered by Google Project Hosting