diff --git a/editor/js/ui/common/typedInput.js b/editor/js/ui/common/typedInput.js index e481c6ef4..5803b290d 100644 --- a/editor/js/ui/common/typedInput.js +++ b/editor/js/ui/common/typedInput.js @@ -99,7 +99,7 @@ this.uiSelect = this.elementDiv.wrap( "
" ).parent(); var attrStyle = this.element.attr('style'); var m; - if ((m = /width\s*:\s*(\d+(%|px))/i.exec(attrStyle)) !== null) { + if ((m = /width\s*:\s*(calc\s*\(.*\)|\d+(%|px))/i.exec(attrStyle)) !== null) { this.element.css('width','100%'); this.uiSelect.width(m[1]); this.uiWidth = null;