fullcalendar not visible until button is clicked or window resized?

后端 未结 7 1786
醉梦人生
醉梦人生 2020-12-19 07:35

I\'m using jquery full calendar with angularJS and angularstrap. The problem it seems is that the calendar will only display when I either click on one of the buttons in the

7条回答
  •  清歌不尽
    2020-12-19 08:03

    The problem is that the calendar is initialized while the modal is not visible. If the modal was in a controller, you could potentially use $scope.$on('modal-shown', function() {}); to somehow trigger calendar('render');.

    I couldn't figure out a way to detect visibility. I tried using a $watch in the directive on elm.is(':visible'), but could only get it to check 2 times, when it loaded.

提交回复
热议问题