From 2928058f872a735ab41620c67531e4c63588d40c Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 8 Oct 2011 19:09:47 +0000 Subject: [PATCH] fix calendar background --- source/Ox.UI/js/Calendar/Ox.Calendar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index fc163f79..d16d807b 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -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();