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

Commit a75d8a9

Browse files
committed
modalbar already showing, adjust for old height
1 parent 2030451 commit a75d8a9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/search/FindInFilesUI.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,11 @@ define(function (require, exports, module) {
227227

228228
// Show file-exclusion UI *unless* search scope is just a single file
229229
if (!scope || scope.isDirectory) {
230-
var exclusionsContext = {
231-
label: FindUtils.labelForScope(scope),
232-
promise: candidateFilesPromise
233-
};
230+
var oldModalBarHeight = _findBar._modalBar.height(),
231+
exclusionsContext = {
232+
label: FindUtils.labelForScope(scope),
233+
promise: candidateFilesPromise
234+
};
234235

235236
filterPicker = FileFilters.createFilterPicker(exclusionsContext);
236237
// TODO: include in FindBar? (and disable it when FindBar is disabled)
@@ -249,6 +250,7 @@ define(function (require, exports, module) {
249250
scrollPos;
250251
if (fullEditor) {
251252
scrollPos = fullEditor.getScrollPos();
253+
scrollPos.y -= oldModalBarHeight; // modalbar already showing, adjust for old height
252254
}
253255
EditorManager.resizeEditor();
254256
if (fullEditor) {

0 commit comments

Comments
 (0)