javascript - FullCalendar Not Rendering in Tabs -


i have basic custom tabs setup function using click events show/hide divs.

fullcalendar isn't showing on 1 of tabs despite using render function (docs).

$(".tabs .tab").click (e) ->   ...   $("#calendar").fullcalendar "render" 

the #calendar div hidden, understanding, render function should force calendar render each click. of other tabs work properly, know it's not problem show/hide functionality @ all.

does know might going wrong here?

the problem ended being related way showing/hiding divs-

the css selector using hide divs broad , ended assigning display: none; calendar div (which child of tab content divs).

the solution change:

$("#tab-contents div").hide() 

to:

$("#tab-contents").children().hide 

in html calendar shown (in haml):

#tab-contents   #tab-calendar     #calendar   #tab-other     ... 

thanks , suggestions, , should have posted more code in beginning.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -