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

Fix multiline search widget not scrolling with cursor properly

Fix #103952
上级 b873dc65
......@@ -39,16 +39,16 @@
padding-left: 4px;
}
.search-view .search-widget .monaco-inputbox > .wrapper > .mirror {
max-height: 134px;
}
/* NOTE: height is also used in searchWidget.ts as a constant*/
.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
overflow: initial;
height: 24px; /* set initial height before measure */
}
.search-view .search-widget .monaco-findInput .monaco-scrollable-element .scrollbar {
opacity: 0;
}
.search-view .monaco-inputbox > .wrapper > textarea.input {
scrollbar-width: none; /* Firefox: hide scrollbar */
}
......
......@@ -308,7 +308,8 @@ export class SearchWidget extends Widget {
appendWholeWordsLabel: appendKeyBindingLabel('', this.keyBindingService.lookupKeybinding(Constants.ToggleWholeWordCommandId), this.keyBindingService),
appendRegexLabel: appendKeyBindingLabel('', this.keyBindingService.lookupKeybinding(Constants.ToggleRegexCommandId), this.keyBindingService),
history: options.searchHistory,
flexibleHeight: true
flexibleHeight: true,
flexibleMaxHeight: 134
};
const searchInputContainer = dom.append(parent, dom.$('.search-container.input-box'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册