Fix navigating via `pageUp`/`pageDown`
MODIFY
lib/project/results-view.js
lib/project/results-view.js
@@ -207,8 +207,8 @@ class ResultsView {
this.setScrollTop(this.getScrollTop() - this.refs.listView.element.clientHeight);
this.selectResultAtPosition(
position - this.refs.listView.element.clientHeight,
- pathDetailsHeight,
- matchHeight
+ this.pathDetailsHeight,
+ this.matchHeight
);
}
}
@@ -221,8 +221,8 @@ class ResultsView {
this.setScrollTop(newScrollTop);
this.selectResultAtPosition(
position + this.refs.listView.element.clientHeight,
- pathDetailsHeight,
- matchHeight
+ this.pathDetailsHeight,
+ this.matchHeight
);
}
}
@@ -247,7 +247,7 @@ class ResultsView {
if (this.refs.listView) {
this.selectedResultIndex = this.model.getPathCount() - 1;
this.selectedMatchIndex = this.collapsedResultIndices[this.selectedResultIndex] ?
- -1 : this.getResultAt(this.selectedResultIndex).matches.length - 1;
+ -1 : this.model.getResultAt(this.selectedResultIndex).matches.length - 1;
let top = 0, bottom = 0;
for (let i = 0; i < this.model.getPathCount(); i++) {

Fix navigating via `pageUp`/`pageDown`