Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit b9ed6f7f6d388fc451efbada2d1501d667322cb0 1 parent d571cdc
@unclecheese unclecheese authored chillu committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  admin/thirdparty/chosen/chosen/chosen.jquery.js
View
1  admin/thirdparty/chosen/chosen/chosen.jquery.js
@@ -325,6 +325,7 @@ Copyright (c) 2011 by Harvest
this.container_id = this.form_field.id.length ? this.form_field.id.replace(/(:|\.)/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 = this.form_field_jq.data('placeholder') ? this.form_field_jq.data('placeholder') : this.default_text_default;
container_div = $("<div />", {
id: this.container_id,
Please sign in to comment.
Something went wrong with that request. Please try again.