From 8a5db8ce4bd5eb60215094e92db7269de6a37560 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 8 Nov 2016 13:36:32 +0000 Subject: [PATCH] Handle explicitly set input widths on typedInput --- editor/js/ui/common/typedInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/common/typedInput.js b/editor/js/ui/common/typedInput.js index ed13dc501..a455efc66 100644 --- a/editor/js/ui/common/typedInput.js +++ b/editor/js/ui/common/typedInput.js @@ -117,7 +117,7 @@ this.uiSelect = this.elementDiv.wrap( "
" ).parent(); var attrStyle = this.element.attr('style'); var m; - if ((m = /width\s*:\s*(\d+%)/i.exec(attrStyle)) !== null) { + if ((m = /width\s*:\s*(\d+(%|px))/i.exec(attrStyle)) !== null) { this.element.css('width','100%'); this.uiSelect.width(m[1]); this.uiWidth = null;