From dcb567143e3b9594672bf5d6aa84be8e58c66ff2 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 27 May 2011 18:14:22 +0200 Subject: [PATCH] always draw background all the way down to the bottom --- source/Ox.UI/js/Calendar/Ox.Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index 35861619..669cf5d2 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -865,7 +865,7 @@ Ox.Calendar = function(options, self) { lineEvents[line].push(event); }); self.$content.find('.OxLine').remove(); - height = lineEvents.length * 16; + height = Math.max(lineEvents.length * 16, self.$container.height()); self.$background.$element.children().css({height: height + 'px'}); self.$content.css({height: height + 'px'}); lineEvents.forEach(function(events, line) {