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

Fix #68977 - fix search widget mirror width

上级 553e6e4f
......@@ -337,7 +337,11 @@ export class FindInput extends Widget {
}));
if (this._showOptionButtons) {
this.inputBox.inputElement.style.paddingRight = (this.caseSensitive.width() + this.wholeWords.width() + this.regex.width()) + 'px';
const paddingRight = (this.caseSensitive.width() + this.wholeWords.width() + this.regex.width()) + 'px';
this.inputBox.inputElement.style.paddingRight = paddingRight;
if (this.inputBox.mirrorElement) {
this.inputBox.mirrorElement.style.paddingRight = paddingRight;
}
}
// Arrow-Key support to navigate between options
......
......@@ -230,6 +230,10 @@ export class InputBox extends Widget {
}
}
public get mirrorElement(): HTMLElement {
return this.mirror;
}
public get inputElement(): HTMLInputElement {
return this.input;
}
......
......@@ -169,6 +169,7 @@ export class SearchWidget extends Widget {
}
setWidth(width: number) {
this.searchInput.inputBox.layout();
this.replaceInput.width = width - 28;
this.replaceInput.layout();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册