My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 998: In IE, first event offsetHeight is 0 and therefore will not display in correct cell.
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by mitchel...@gmail.com, Jun 15, 2011
The offsetHeight is being calculated before the first event is rendered in the calendar, so the first item in segs has an offsetHeight of 0.

Jun 19, 2011
#1 mitchel...@gmail.com
Added zoom: 100% and it appears to have sorted it out. 


function daySegCalcHeights(segs) {
	var i;
	var segCnt = segs.length;
	var seg;
	var element;
	var key, val;
	var vmarginCache = {};
	// record event heights
	for (i=0; i<segCnt; i++) {
		seg = segs[i];
		element = seg.element;
		if (element) {
			key = seg.key; // created in daySegCalcHSides
			val = vmarginCache[key];
			if (val === undefined) {
				val = vmarginCache[key] = vmargins(element[0]);
			}
			$(element[0]).css('zoom', '100%'); /* ADDED THIS LINE */
			seg.outerHeight = element[0].offsetHeight + val;
		}
	}
}
Jul 11, 2011
Project Member #2 adamrs...@gmail.com
can you provide an example of the bug happening first? it is hard for me to understand under what circumstances this problem occurs.
Status: Reproducing
Aug 13, 2013
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting