Fixes #2010: Better management of enablement state in find widget

This commit is contained in:
Alex Dima
2016-01-14 13:24:22 +01:00
parent 63e2349d12
commit 3d09f560f0
4 changed files with 116 additions and 129 deletions

View File

@@ -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);
}