mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
Fixes #2010: Better management of enablement state in find widget
This commit is contained in:
@@ -210,6 +210,14 @@ export class InputBox extends Widget {
|
||||
this._hideMessage();
|
||||
}
|
||||
|
||||
public setEnabled(enabled:boolean): void {
|
||||
if (enabled) {
|
||||
this.enable();
|
||||
} else {
|
||||
this.disable();
|
||||
}
|
||||
}
|
||||
|
||||
public get width():number {
|
||||
return dom.getTotalWidth(this.input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user