1
0
Fork 0
forked from 0x2620/oxjs

fix resize bugs in calendar, list calendar etc

This commit is contained in:
rlx 2012-01-30 22:11:05 +00:00
commit 93fe766c7b
6 changed files with 40 additions and 19 deletions

View file

@ -1033,8 +1033,8 @@ Ox.Calendar = function(options, self) {
function renderCalendar() {
self.contentHeight = Math.max(
self.lineEvents.length * 16 + 16, // fixme: why +16 ?,
self.options.height - (self.options.showToolbar * 24) - 16 - 16
self.lineEvents.length * 16 + 16, // fixme: why +16 ?
self.options.height - (self.options.showToolbar * 24)
// self.options.height - 56 // 24 + 16 + 16
);
self.$content.css({height: self.contentHeight + 'px'});
@ -1320,6 +1320,7 @@ Ox.Calendar = function(options, self) {
};
that.resizeCalendar = function() {
Ox.print('RESIZE CALENDAR')
self.options.width = that.width();
self.options.height = that.height();
self.options.showZoombar && self.$zoomInput.options({size: self.options.width});