Issue 427: Invalid argument error in IE8 when fullcalendar rendered on hidden tab
Status:  Done
Owner: ----
Closed:  Apr 2010
Reported by isitsc...@gmail.com, Mar 30, 2010
When fullcalendar is rendered on a hidden jQuery tab, IE8 throws an 
invalid argument error at line 1505:

	// set event widths
	for (i=0; i<segCnt; i++) {
		seg = segs[i];
		if (eventElement = seg.element) {
			eventElement[0].style.width = seg.outerWidth - 
seg.hsides + 'px';
		}
	}

Altering the tabs styling to hide left fixes the issue, but causes other 
problems in my app (see: 
http://docs.jquery.com/UI/Tabs#...my_slider.2C_Google_Map.2C_sIFR_etc._not_
work_when_placed_in_a_hidden_.28inactive.29_tab.3F).

Should fullcalendar be checking to see if it is visible prior to rendering?

Although a fix would be preferable, is it possible to disable automatic 
rendering of the calendar? If so, I could just perform the actual 
rendering using the tabshow event.

Many thanks in advance.
Mar 30, 2010
#1 jprof...@gmail.com
I don't think this is a fixable issue. I've encountered similar problems when
developing javascript applications.  The accepted fix is to render then hide, or
display outside of viewport.
Mar 30, 2010
Project Member #2 adamrs...@gmail.com
fullcalendar does check to see if it is visible before rendering. what version are you 
using?

more info on tab-related stuff here:
http://arshaw.com/fullcalendar/docs/display/render/

if you are still having this problem, please post a working example demonstrating it 
(either online demo, or a zip with runnable html file + all requirements)
Apr 26, 2010
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done