Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6629 from adobe/tom/issue-6612
Browse files Browse the repository at this point in the history
Fix issue #6612: Find in Files panel doesn't reset scroll...
  • Loading branch information
Narciso Jaramillo committed Jan 30, 2014
2 parents 9001a87 + 1c98d35 commit a01a58a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/FindInFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ define(function (require, exports, module) {
$searchContent
.empty()
.append(Mustache.render(searchResultsTemplate, {searchList: searchList, Strings: Strings}))
.scrollTop(0) // Otherwise scroll pos from previous contents is remembered
.off(".searchList") // Remove the old events

// Add the click event listener directly on the table parent
Expand Down Expand Up @@ -497,6 +496,7 @@ define(function (require, exports, module) {
$selectedRow = null;
}
searchResultsPanel.show();
$searchContent.scrollTop(0); // Otherwise scroll pos from previous contents is remembered

if (dialog) {
dialog._close();
Expand Down
1 change: 1 addition & 0 deletions src/search/FindReplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ define(function (require, exports, module) {
});

replaceAllPanel.show();
$replaceAllTable.scrollTop(0); // Otherwise scroll pos from previous contents is remembered
}

/** Shows the Find-Replace search bar at top */
Expand Down

0 comments on commit a01a58a

Please sign in to comment.