Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to adjust width and position of events in jQuery Full Calendar in week-view and day view

I am using fullcalendar in one of my Rails projects to render events on calendar.

The jsfiddle shows the scenario.

I am able to adjust the width but it does not modify the position of events in the same row next to each other. Is there a callback or method which would adjust the position of events when the width is modified

like image 627
naren Avatar asked Apr 19 '12 22:04

naren


1 Answers

Take a look at this fiddle: http://jsfiddle.net/100thGear/jRFYE/

I used the eventRender callback to alter the offset of the next event(s). Hope this helps and gives you an idea of how to proceed.


Why don't you use the className attribute of the event object to set this? You could set the width in the CSS class you are passing to this attribute.

like image 86
ganeshk Avatar answered Oct 09 '22 12:10

ganeshk