提交 25179088 编写于 作者: R Rob Lourens

Fix search result bubbles showing in the wrong place in wide mode

上级 2d0dd21a
......@@ -175,9 +175,9 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
super.create(parent);
this.viewModel = this._register(this.searchWorkbenchService.searchModel);
const containerElement = dom.append(parent, $('.search-view'));
dom.addClass(parent, 'search-view');
this.searchWidgetsContainerElement = dom.append(containerElement, $('.search-widgets-container'));
this.searchWidgetsContainerElement = dom.append(parent, $('.search-widgets-container'));
this.createSearchWidget(this.searchWidgetsContainerElement);
const history = this.searchHistoryService.load();
......@@ -254,12 +254,12 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
this.inputPatternExcludes.onCancel(() => this.viewModel.cancelSearch()); // Cancel search without focusing the search widget
this.trackInputBox(this.inputPatternExcludes.inputFocusTracker, this.inputPatternExclusionsFocused);
this.messagesElement = dom.append(containerElement, $('.messages'));
this.messagesElement = dom.append(parent, $('.messages'));
if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
this.showSearchWithoutFolderMessage();
}
this.createSearchResultsView(containerElement);
this.createSearchResultsView(parent);
this.actions = [
this.instantiationService.createInstance(RefreshAction, RefreshAction.ID, RefreshAction.LABEL),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册