My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 252: Bug on clickable area of AllDay events
  Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


Sign in to add a comment
 
Reported by bibendus...@gmail.com, Dec 21, 2009
I noticed that while the clickable link area of a Timed event covers all
the event div, an AllDay event is clicable only on it's title.
If the AllDay event title is really short it's hard to click on it ;)

Dec 22, 2009
Project Member #1 adamrs...@gmail.com
really? i just tried to reproduce this, but i can't. should be clickable on the
entire element. there may be something else at work. can you post your html/css/js so
i can further debug?
Dec 22, 2009
#2 bibendus...@gmail.com
Sorry, it was my bad!

I used this custom trigger to change events colors moving them from AllDay to Timed

eventRender: function(calEvent, element) {                                          
         
	if (calEvent.allDay) {           
		element.removeClass('fc-event'); 
		element.addClass('todo');  
	} else { 
		element.removeClass('todo'); 
		element.addClass('fc-event');
	}
} 

Here are my CSS

.fc-event,
.fc-agenda .fc-event-time,
.fc-event a {
	text-decoration: none;
	border-style: solid; 
	border-color: #36c;     /* default BORDER color (probably the same as
background-color) */
	background-color: #36c; /* default BACKGROUND color */
	color: #fff;            /* default TEXT color */      
}   

.todo,
.fc-agenda .todo .fc-event-time,
.todo a {         
	text-decoration: none;
	padding-left: 1px;                                               
	border-color: red;     /* default BORDER color (probably the same as
background-color) */      
	background-color: red; /* default BACKGROUND color */
	color: #fff;           /* default TEXT color */    
}

removing the "fc-event" class caused my problem, I removed the line
element.removeClass('fc-event');  and now it works ;)
Dec 30, 2009
Project Member #3 adamrs...@gmail.com
ok good. yeah, the event relies pretty heavily on that fc-event class being there.
glad you figured it out.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting