Handle explicitly set input widths on typedInput

This commit is contained in:
Nick O'Leary 2016-11-08 13:36:32 +00:00
parent 196d6e79e2
commit 8a5db8ce4b
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@
this.uiSelect = this.elementDiv.wrap( "<div>" ).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;