fix calendar background

This commit is contained in:
rlx 2011-10-08 19:09:47 +00:00
parent 19cb033bdc
commit 2928058f87

View file

@ -878,7 +878,8 @@ Ox.Calendar = function(options, self) {
self.lineEvents[line].push(event);
});
self.contentHeight = Math.max(
self.lineEvents.length * 16, self.$container.height()
self.lineEvents.length * 16,
self.options.height - 72 // 24 + 16 + 16 + 16
);
self.$content.css({height: self.contentHeight + 'px'});
}
@ -1049,6 +1050,7 @@ Ox.Calendar = function(options, self) {
that.resizeCalendar = function() {
self.options.width = that.width();
self.options.height = that.height();
self.$zoomInput.options({size: self.options.width});
getLines();
renderCalendar();