why is there extra space between url-tagged events?

故事扮演 提交于 2019-12-10 11:22:53

问题


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();
});

回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!