I have a fullcalander spacing bug that I can't get past.
Here is what my calendar looks like when my data doesn't have links in it
$ticketData[] = array(
'id' => $ticket->getId(),
'title' => $title,
'start' => $ticket->getArrival()->format('Y-m-d'),
'end' => $ticket->getDeparture()->format('Y-m-d'),
);
Now when I add a URL:
Has this weird bug happened to anyone else? I'm really lost as to what's going on. The only line I added was the url:
$ticketData[] = array(
'id' => $ticket->getId(),
'title' => $title,
'start' => $ticket->getArrival()->format('Y-m-d'),
'end' => $ticket->getDeparture()->format('Y-m-d'),
'url' => $url
);
Here is how I'm calling the calender:
$('#calendar').fullCalendar({
editable: false,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
events: data_url,
loading: function(bool) {
if (bool)
$('#loading').show();
else
$('#loading').hide();
});
This is almost definitely a CSS issue. My guess is that you've got padding or margins hitting those links.
来源:https://stackoverflow.com/questions/15857001/why-is-there-extra-space-between-url-tagged-events