Skip to content

Commit 8a5db8c

Browse files
committed
Handle explicitly set input widths on typedInput
1 parent 196d6e7 commit 8a5db8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editor/js/ui/common/typedInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
this.uiSelect = this.elementDiv.wrap( "<div>" ).parent();
118118
var attrStyle = this.element.attr('style');
119119
var m;
120-
if ((m = /width\s*:\s*(\d+%)/i.exec(attrStyle)) !== null) {
120+
if ((m = /width\s*:\s*(\d+(%|px))/i.exec(attrStyle)) !== null) {
121121
this.element.css('width','100%');
122122
this.uiSelect.width(m[1]);
123123
this.uiWidth = null;

0 commit comments

Comments
 (0)