mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
ordering/comment tweak
This commit is contained in:
parent
7e7dc33acd
commit
046a4e4041
2 changed files with 5 additions and 5 deletions
|
@ -181,7 +181,7 @@ function loaded() {
|
|||
|
||||
elNoEntitiesInView.style.display = "none";
|
||||
|
||||
entityList = new ListView(elEntityTableHeaderRow, elEntityTableBody, elEntityTableScroll,
|
||||
entityList = new ListView(elEntityTableBody, elEntityTableScroll, elEntityTableHeaderRow,
|
||||
createRow, updateRow, clearRow, WINDOW_NONVARIABLE_HEIGHT);
|
||||
|
||||
function onRowClicked(clickEvent) {
|
||||
|
|
|
@ -13,11 +13,11 @@ debugPrint = function (message) {
|
|||
console.log(message);
|
||||
};
|
||||
|
||||
function ListView(elTableHeaderRow, elTableBody, elTableScroll, createRowFunction,
|
||||
function ListView(elTableBody, elTableScroll, elTableHeaderRow, createRowFunction,
|
||||
updateRowFunction, clearRowFunction, WINDOW_NONVARIABLE_HEIGHT) {
|
||||
this.elTableHeaderRow = elTableHeaderRow;
|
||||
this.elTableBody = elTableBody;
|
||||
this.elTableScroll = elTableScroll;
|
||||
this.elTableHeaderRow = elTableHeaderRow;
|
||||
|
||||
this.elTopBuffer = null;
|
||||
this.elBottomBuffer = null;
|
||||
|
@ -264,11 +264,11 @@ ListView.prototype = {
|
|||
let ths = this.elTableHeaderRow;
|
||||
let tds = this.getNumRows() > 0 ? this.elRows[0].childNodes : [];
|
||||
if (!ths) {
|
||||
debugPrint("ListView.resize - no valid header row");
|
||||
debugPrint("ListView.resize - no valid table header row");
|
||||
} else if (tds.length !== ths.length) {
|
||||
debugPrint("ListView.resize - td list size " + tds.length + " does not match th list size " + ths.length);
|
||||
}
|
||||
// update the widths of the header cells to match the body cells (using first row)
|
||||
// update the widths of the header cells to match the body cells (using first body row)
|
||||
for (let i = 0; i < ths.length; i++) {
|
||||
ths[i].width = tds[i].offsetWidth;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue