diff --git a/src/vs/workbench/contrib/search/browser/searchWidget.ts b/src/vs/workbench/contrib/search/browser/searchWidget.ts index d900ecb01d72be78ea71756edc66e0e07f4c0816..34b1786dd619a233af43ff27aefa003fee888e66 100644 --- a/src/vs/workbench/contrib/search/browser/searchWidget.ts +++ b/src/vs/workbench/contrib/search/browser/searchWidget.ts @@ -90,6 +90,7 @@ function stopPropagationForMultiLineDownwards(event: IKeyboardEvent, value: stri } export class SearchWidget extends Widget { + private static readonly INPUT_MAX_HEIGHT = 134; private static readonly REPLACE_ALL_DISABLED_LABEL = nls.localize('search.action.replaceAll.disabled.label', "Replace All (Submit Search to Enable)"); private static readonly REPLACE_ALL_ENABLED_LABEL = (keyBindingService2: IKeybindingService): string => { @@ -309,7 +310,7 @@ export class SearchWidget extends Widget { appendRegexLabel: appendKeyBindingLabel('', this.keyBindingService.lookupKeybinding(Constants.ToggleRegexCommandId), this.keyBindingService), history: options.searchHistory, flexibleHeight: true, - flexibleMaxHeight: 134 + flexibleMaxHeight: SearchWidget.INPUT_MAX_HEIGHT }; const searchInputContainer = dom.append(parent, dom.$('.search-container.input-box')); @@ -393,7 +394,8 @@ export class SearchWidget extends Widget { label: nls.localize('label.Replace', 'Replace: Type replace term and press Enter to preview or Escape to cancel'), placeholder: nls.localize('search.replace.placeHolder', "Replace"), history: options.replaceHistory, - flexibleHeight: true + flexibleHeight: true, + flexibleMaxHeight: SearchWidget.INPUT_MAX_HEIGHT }, this.contextKeyService, true)); this._register(this.replaceInput.onDidOptionChange(viaKeyboard => {