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