forked from 0x2620/oxjs
some fixes for map, range and videopreview
This commit is contained in:
parent
8ea49fab73
commit
c6d67420a8
6 changed files with 88 additions and 37 deletions
|
|
@ -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?
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue