make list scrollable

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

View File

@ -37,10 +37,11 @@ Core
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
overflow: hidden; //overflow: hidden;
overflow: auto;
} }
.OxContent { .OxContent {
overflow: auto; //overflow: auto;
} }
/* /*
@ -555,7 +556,7 @@ Lists
bottom: 0; bottom: 0;
} }
.OxTextList .OxBody .OxContent { .OxTextList .OxBody .OxContent {
width: 100%; //width: 100%;
} }
.OxTextList .OxBody .OxItem { .OxTextList .OxBody .OxItem {
height: 16px; height: 16px;
@ -578,7 +579,9 @@ Lists
width: 1px; width: 1px;
height: 16px; height: 16px;
} }
.OxTextList .OxPage {
position: absolute;
}
/* /*
================================================================================ ================================================================================
Menus Menus

View File

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

View File

@ -79,7 +79,7 @@ $(function() {
id: "runtime", id: "runtime",
operator: "-", operator: "-",
title: "Runtime", title: "Runtime",
visible: false, visible: true,
width: 80 width: 80
} }
], ],