From 770f5ff0ba8486b5daa7beabecc5d1bbfbcb86e3 Mon Sep 17 00:00:00 2001 From: "igor.vaynberg" Date: Tue, 27 Jul 2010 03:51:40 +0800 Subject: [PATCH] fix for Issue 235 - shrink calendar height if there is leftover space --- src/agenda.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agenda.js b/src/agenda.js index 04962a9..8310393 100644 --- a/src/agenda.js +++ b/src/agenda.js @@ -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