|
|
@@ -98,7 +98,6 @@ function AgendaView(element, calendar, viewName) {
|
|
|
var slotContainer;
|
|
|
var slotSegmentContainer;
|
|
|
var slotTable;
|
|
|
- var slotTableFirstInner;
|
|
|
var selectionHelper;
|
|
|
|
|
|
var viewWidth;
|
|
|
@@ -263,7 +262,6 @@ function AgendaView(element, calendar, viewName) {
|
|
|
"</tbody>" +
|
|
|
"</table>";
|
|
|
slotTable = $(s).appendTo(slotContainer);
|
|
|
- slotTableFirstInner = slotTable.find('div:first');
|
|
|
|
|
|
slotBind(slotTable.find('td'));
|
|
|
}
|
|
|
@@ -447,7 +445,9 @@ function AgendaView(element, calendar, viewName) {
|
|
|
|
|
|
slotScroller.height(bodyHeight - allDayHeight - 1);
|
|
|
|
|
|
- slotHeight = slotTableFirstInner.height() + 1; // +1 for border
|
|
|
+ // the stylesheet guarantees that the first row has no border.
|
|
|
+ // this allows .height() to work well cross-browser.
|
|
|
+ slotHeight = slotTable.find('tr:first').height() + 1; // +1 for bottom border
|
|
|
|
|
|
snapRatio = opt('slotMinutes') / snapMinutes;
|
|
|
snapHeight = slotHeight / snapRatio;
|