forked from 0x2620/oxjs
improve InfoList
This commit is contained in:
parent
1a4332c49c
commit
95f3d536ec
7 changed files with 105 additions and 46 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue