always draw background all the way down to the bottom

This commit is contained in:
rolux 2011-05-27 18:14:22 +02:00
parent 8ed96c83ca
commit dcb567143e

View file

@ -865,7 +865,7 @@ Ox.Calendar = function(options, self) {
lineEvents[line].push(event); lineEvents[line].push(event);
}); });
self.$content.find('.OxLine').remove(); 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.$background.$element.children().css({height: height + 'px'});
self.$content.css({height: height + 'px'}); self.$content.css({height: height + 'px'});
lineEvents.forEach(function(events, line) { lineEvents.forEach(function(events, line) {