fix for Issue 235 - shrink calendar height if there is leftover space

v1.4.x
igor.vaynberg 2010-07-27 03:51:40 +08:00 committed by Adam Shaw
parent ef60074fc1
commit 770f5ff0ba
1 changed files with 6 additions and 0 deletions

View File

@ -295,6 +295,12 @@ function Agenda(element, options, methods, viewName) {
height: height
});
// if the table ends up shorter than the allotted view, shrink the view to fit the table
var tableHeight=body.find('table:first').height();
if (tableHeight<body.height()) {
body.height(tableHeight);
}
if (dateChanged) {
resetScroll();
}