1
0
mirror of synced 2025-02-04 06:09:23 +03:00

Merge pull request #183 from ryfeng/master

Default to width: auto instead of width: 0px when styling select2-container
This commit is contained in:
Igor Vaynberg 2012-07-03 07:52:57 -07:00
commit cb72651787

View File

@ -1033,7 +1033,7 @@
return matches[1]; return matches[1];
} }
} }
return this.opts.element.width() + 'px'; return (this.opts.element.width() === 0 ? 'auto' : this.opts.element.width() + 'px');
} }
}); });