Skip to content
Browse files

BUGFIX: When Chosen dropdowns are instantiated on hidden tabs, the wi…

…dth is rendered very small and they are unreadable. This is a known bug in Chosen. A change has been proposed at the Chosen page here: harvesthq/chosen#92 but no pull request has been executed.
  • Loading branch information...
1 parent d571cdc commit b9ed6f7f6d388fc451efbada2d1501d667322cb0 @unclecheese unclecheese committed with chillu
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/thirdparty/chosen/chosen/chosen.jquery.js
1 admin/thirdparty/chosen/chosen/chosen.jquery.js
@@ -325,6 +325,7 @@ Copyright (c) 2011 by Harvest
this.container_id = ?|\.)/g, '_') : this.generate_field_id();
this.container_id += "_chzn";
this.f_width = this.form_field_jq.outerWidth();
+ if (this.f_width==0) this.f_width = this.form_field_jq.css("width");
this.default_text ='placeholder') ?'placeholder') : this.default_text_default;
container_div = $("<div />", {
id: this.container_id,

0 comments on commit b9ed6f7

Please sign in to comment.
Something went wrong with that request. Please try again.