My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2379: Can't create fc off dom.
  Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2014


Sign in to add a comment
 
Reported by slicedt...@gmail.com, Nov 26, 2014
This may be intended but most jquery plugins and widgets don't have this behaviour and I can't find any documentation for it.

You can only create a fullcalendar on an element already in the dom. Creating a fullcalendar on a detached element (or newly created one), breaks the calendar.

So, the following:
`var $fc = $("<div>").fullCalendar();`
Does not create a valid fullcalendar that can late be attached to the dom.

JSFiddle: http://jsfiddle.net/jxmxub0p/1/
Nov 27, 2014
Project Member #1 adamrs...@gmail.com
fullcalendar needs to know sizing info to render correctly. it only knows this after being attached to the dom. You can call the `render` method to force things to render after you know the calendar is in the DOM.

http://jsfiddle.net/jxmxub0p/2/

http://fullcalendar.io/docs/display/render/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting