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;
right: 0;
bottom: 0;
overflow: hidden;
//overflow: hidden;
overflow: auto;
}
.OxContent {
overflow: auto;
//overflow: auto;
}
/*
@ -555,7 +556,7 @@ Lists
bottom: 0;
}
.OxTextList .OxBody .OxContent {
width: 100%;
//width: 100%;
}
.OxTextList .OxBody .OxItem {
height: 16px;
@ -578,7 +579,9 @@ Lists
width: 1px;
height: 16px;
}
.OxTextList .OxPage {
position: absolute;
}
/*
================================================================================
Menus

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) {

View File

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