Change for evalution: always display all rows

pull/4625/head
Roman Roelofsen 8 years ago
parent a34ec30b89
commit 6cc1ae1b7b
  1. 12
      frontend/app/components/wp-table/wp-virtual-scroll.directive.ts

@ -121,16 +121,18 @@ class RowDisplay {
}
private isRowInViewportOffset() {
const offset = this.workPackageTableVirtualScrollService.viewportOffset;
return this.index >= (this.viewport[0] - offset) && this.index <= (this.viewport[1] + offset);
return true;
// const offset = this.workPackageTableVirtualScrollService.viewportOffset;
// return this.index >= (this.viewport[0] - offset) && this.index <= (this.viewport[1] + offset);
}
private viewportChanged() {
const isRowInViewport = this.isRowInViewportOffset();
const enableWatchers = this.isRowInViewport();
if (this.visible === undefined) {
// First run
const firstRun = this.visible === undefined;
if (firstRun) {
this.renderRow(isRowInViewport);
} else if (!this.visible && isRowInViewport) {
this.hide();
@ -139,7 +141,7 @@ class RowDisplay {
this.renderRow(false);
}
if (this.clone) {
if (!firstRun && this.clone) {
this.adjustWatchers(this.clone, enableWatchers);
}
}

Loading…
Cancel
Save