Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for Issue 235 - shrink calendar height if there is leftover space
  • Loading branch information
ivaynberg authored and arshaw committed Sep 22, 2010
1 parent ef60074 commit 770f5ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/agenda.js
Expand Up @@ -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();
}
Expand Down

0 comments on commit 770f5ff

Please sign in to comment.