mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-21 12:30:17 +08:00
fix agenda selection alignment when cell height is customized (issue 1035)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user