From 5c96c8c986efeb912c9a6f1eba2b3075ad8b8dc1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 17 Jun 2013 22:01:50 +0000 Subject: [PATCH] Prevent accidental too wide chosen boxes --- etemplate/js/et2_widget_selectbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index b1da9adc57..cef8bc8a2d 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -548,7 +548,7 @@ var et2_selectbox = et2_inputWidget.extend( { this.input.attr("data-placeholder", this.options.empty_label); } - this.input.css("width","100%") + this.input.css("width",this.options.tags ? "100%":'') .chosen({ }) .change(this.onchange);