From: Ryan Lane Date: Thu, 22 Aug 2013 23:38:34 +0000 (-0700) Subject: jquery.chosen: set default text width to auto X-Git-Tag: 1.31.0-rc.0~18907 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=986317df6b649b3f5d77938cae7eeb16945dcf16;p=lhc%2Fweb%2Fwiklou.git jquery.chosen: set default text width to auto Rather than hardcoding the default text width to 25px, set the default to auto, so that when using width: auto for the chosen container an empty input won't be 25px. Change-Id: I694daa263f921c9e5a0490519af352d173fb4c9d --- diff --git a/resources/jquery.chosen/chosen.jquery.js b/resources/jquery.chosen/chosen.jquery.js index a240ebd456..745174f768 100644 --- a/resources/jquery.chosen/chosen.jquery.js +++ b/resources/jquery.chosen/chosen.jquery.js @@ -391,7 +391,7 @@ Copyright (c) 2011 by Harvest }; this.container = $("
", container_props); if (this.is_multiple) { - this.container.html('
    '); + this.container.html('
      '); } else { this.container.html('' + this.default_text + '
        '); }