1
0
Fork 0
forked from 0x2620/oxjs

make list scrollable

This commit is contained in:
Rolux 2010-06-29 23:58:17 +02:00
commit 62285d03af
3 changed files with 14 additions and 8 deletions

View file

@ -2404,6 +2404,10 @@ requires
pageHeight: self.options.orientation == "horizontal" ? 0 :
self.pageLength * self.options.itemHeight / self.options.rowLength
});
Ox.print("listHeight", self.listHeight)
that.$content.css({
height: self.listHeight + "px"
});
loadPages(self.page);
}
});
@ -2714,7 +2718,7 @@ requires
Ox.ListPage = function(options, self) {
var self = self || {},
that = new Ox.Element({}, self)
.addClass("OxListPage");
.addClass("OxPage");
return that;
};
@ -2843,8 +2847,7 @@ requires
})
.appendTo(that);
that.$body.$content.css({
width: Math.max(Ox.sum(self.columnWidths), that.$element.width() - 12) + "px",
height: self.listHeight + "px"
width: Math.max(Ox.sum(self.columnWidths), that.$element.width() - 12) + "px"
});
function addColumn(id) {