Fullcalendar渲染Popover / Tooltip问题

时间:2014-11-19 08:56:58

标签: fullcalendar

我导入了fullcalendar插件,我试图通过在所选事件上添加popover / tooltip来修改视图。     但是包含大量内容的弹出窗口部分隐藏。 请参阅附图以便更好地理解。

我已附加此代码以获得所需效果。 Javscript:

$('#calendar').fullCalendar({   
        eventMouseover: function(calEvent, jsEvent, view) {         
        // change the border color just for fun
        $(this).css('border-color', 'red');
        $(this).find(".fc-content").attr({"data-toggle":"popover","title":calEvent.title,"data-content":calEvent.title});
        $(this).find(".fc-content").click(function(){$(this).popover('show');},function(){$(this).popover('hide');});
    });

enter image description here

1 个答案:

答案 0 :(得分:4)

这是一个引导问题而不是fullCalendar问题。 如您所见:Bootstrap popover not showing on top of all elements 只需添加到.attr"数据容器":" body"。

所以:

$(this).find(".fc-content").attr({"data-toggle":"popover","title":calEvent.title,"data-content":calEvent.title});

应该是:

$(this).find(".fc-content").attr({"data-toggle":"popover","title":calEvent.title,"data-content":calEvent.title, "data-container": "body"});
相关问题