diff --git a/coffee/lib/abstract-chosen.coffee b/coffee/lib/abstract-chosen.coffee index 08e5e83043f..110df0481d7 100644 --- a/coffee/lib/abstract-chosen.coffee +++ b/coffee/lib/abstract-chosen.coffee @@ -326,7 +326,9 @@ class AbstractChosen setTimeout (=> this.results_search()), 50 container_width: -> - return if @options.width? then @options.width else "#{@form_field.offsetWidth}px" + return @options.width if @options.width? + return "#{@form_field.offsetWidth}px" if @form_field.offsetWidth > 0 + return "auto" include_option_in_results: (option) -> return false if @is_multiple and (not @display_selected_options and option.selected)