1
0
Fork 0
forked from 0x2620/oxjs

improve InfoList

This commit is contained in:
rlx 2011-10-16 12:32:02 +00:00
commit 95f3d536ec
7 changed files with 105 additions and 46 deletions

View file

@ -698,11 +698,6 @@ Ox.Calendar = function(options, self) {
}
self.lineEvents[line].push(event);
});
self.contentHeight = Math.max(
self.lineEvents.length * 16,
self.options.height // - 72 // 24 + 16 + 16 + 16
);
self.$content.css({height: self.contentHeight + 'px'});
}
function getMouseDate(e) {
@ -892,6 +887,11 @@ Ox.Calendar = function(options, self) {
}
function renderCalendar() {
self.contentHeight = Math.max(
self.lineEvents.length * 16,
self.options.height // - 72 // 24 + 16 + 16 + 16
);
self.$content.css({height: self.contentHeight + 'px'});
$('.OxBackground').empty();
$('.OxEvent').remove();
renderBackground();