mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
Fixed issue with scrolling to row after bounds change
This commit is contained in:
parent
dadca62955
commit
9f3ec3b18f
@ -544,14 +544,14 @@ define(
|
||||
}
|
||||
|
||||
this.$scope.displayRows = this.filterAndSort(newRows || []);
|
||||
this.resize(newRows).then(function() {
|
||||
this.setVisibleRows();
|
||||
|
||||
var timeOfInterest = this.conductor.timeOfInterest();
|
||||
if (timeOfInterest) {
|
||||
this.setTimeOfInterest(timeOfInterest);
|
||||
}
|
||||
}.bind(this));
|
||||
this.resize(newRows).then(this.setVisibleRows)
|
||||
.then(this.timeout)
|
||||
.then(function() {
|
||||
var timeOfInterest = this.conductor.timeOfInterest();
|
||||
if (timeOfInterest) {
|
||||
this.setTimeOfInterest(timeOfInterest);
|
||||
}
|
||||
}.bind(this));
|
||||
|
||||
};
|
||||
|
||||
@ -615,7 +615,7 @@ define(
|
||||
&& newTOI
|
||||
&& this.$scope.displayRows.length > 0) {
|
||||
var formattedTOI = this.toiFormatter.format(newTOI);
|
||||
// searchElement, min, max
|
||||
// array, searchElement, min, max
|
||||
this.$scope.toiRowIndex = this.binarySearch(this.$scope.displayRows,
|
||||
formattedTOI, 0, this.$scope.displayRows.length - 1);
|
||||
this.scrollToRow(this.$scope.toiRowIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user