fix agenda selection alignment when cell height is customized (issue 1035)

This commit is contained in:
Adam Shaw
2013-08-31 22:04:24 -07:00
parent 3ed1474ef9
commit bc0883f8f0
+3 -3
View File
@@ -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;