1
0
Fork 0
forked from 0x2620/oxjs

some fixes for map, range and videopreview

This commit is contained in:
rlx 2011-09-30 10:34:33 +00:00
commit c6d67420a8
6 changed files with 88 additions and 37 deletions

View file

@ -662,6 +662,7 @@ Ox.List = function(options, self) {
}
function getWidth() {
//Ox.print('LIST THAT.WIDTH()', that.width())
return that.width() - (that.$content.height() > that.height() ? Ox.UI.SCROLLBAR_SIZE : 0);
}
@ -731,9 +732,9 @@ Ox.List = function(options, self) {
self.$items[pos].appendTo(self.$pages[page]);
});
page == 0 && fillFirstPage();
// fixme: why does emptyPage sometimes have no methods?
// FIXME: why does emptyPage sometimes have no methods?
//Ox.print('emptyPage', $emptyPage)
$emptyPage.removeElement && $emptyPage.removeElement();
$emptyPage && $emptyPage.removeElement && $emptyPage.removeElement();
self.$pages[page].appendTo(that.$content);
!Ox.isUndefined(callback) && callback(); // fixme: callback necessary? why not bind to event?
}));