[Table] Remove length check when updating visible rows

While the number of visible rows may not have changed, their
contents may have; returning early here results in #910.
This commit is contained in:
Victor Woeltjen
2016-05-10 14:57:09 -07:00
parent 46e1347dc8
commit c448753bab
2 changed files with 18 additions and 12 deletions

View File

@ -165,17 +165,8 @@ define(
//No need to scroll
if (this.$scope.displayRows.length < this.maxDisplayRows) {
//Check whether need to resynchronize visible with display
// rows (if data added)
if (this.$scope.visibleRows.length !==
this.$scope.displayRows.length){
start = 0;
end = this.$scope.displayRows.length;
} else {
//Data is in sync, and no need to calculate scroll,
// so do nothing.
return;
}
start = 0;
end = this.$scope.displayRows.length;
} else {
//rows has exceeded display maximum, so may be necessary to
// scroll