| 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 |
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.
Jul 11, 2011
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
(No comment was entered for this change.)
Status:
Invalid
|
|
| ► Sign in to add a comment |
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; } } }