From c446cea3a05e58bad3dbb7510ce1c7ce5f159308 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Fri, 21 Feb 2020 16:12:56 -0800 Subject: [PATCH] fix the input width height issue (#9273) * fix the input width height issue * updates --- .../workbench/browser/modelComponents/inputbox.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sql/workbench/browser/modelComponents/inputbox.component.ts b/src/sql/workbench/browser/modelComponents/inputbox.component.ts index c4ba08fc29..d56cddef40 100644 --- a/src/sql/workbench/browser/modelComponents/inputbox.component.ts +++ b/src/sql/workbench/browser/modelComponents/inputbox.component.ts @@ -192,10 +192,10 @@ export default class InputBoxComponent extends ComponentBase implements ICompone } private layoutInputBox(): void { - if (isNumber(this.width)) { + if (isNumber(this.width) || this.width) { this.inputElement.width = this.convertSizeToNumber(this.width); } - if (isNumber(this.height)) { + if (isNumber(this.height) || this.height) { this.inputElement.setHeight(this.convertSize(this.height)); } } @@ -219,7 +219,7 @@ export default class InputBoxComponent extends ComponentBase implements ICompone if (isNumber(this.min)) { input.inputElement.min = this.min.toString(); } - if (isNumber(this.max === undefined)) { + if (isNumber(this.max)) { input.inputElement.max = this.max.toString(); } }