Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: when apply a bugfix patch, there is one missing variable miss…

…ing, add it.
  • Loading branch information...
commit 66f537dc3aa2d7120194bbca1d5e54ff21946570 1 parent 236f267
@normann normann authored chillu committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 admin/thirdparty/chosen/chosen/chosen.jquery.js
View
5 admin/thirdparty/chosen/chosen/chosen.jquery.js
@@ -544,7 +544,8 @@ Copyright (c) 2011 by Harvest
};
Chosen.prototype.results_show = function() {
- var dd_top;
+ //patch applied: https://github.com/harvesthq/chosen/issues/300, add variable declaration dd_width
+ var dd_top, dd_width;
if (!this.is_multiple) {
this.selected_item.addClass("chzn-single-with-drop");
if (this.result_single_selected) {
@@ -552,6 +553,8 @@ Copyright (c) 2011 by Harvest
}
}
dd_top = this.is_multiple ? this.container.height() : this.container.height() - 1;
+ //patch applied: https://github.com/harvesthq/chosen/issues/300, add variable assignment dd_width
+ dd_width = this.container.width() - get_side_border_padding(this.dropdown);
this.dropdown.css({
"top": dd_top + "px",
"left": 0
Please sign in to comment.
Something went wrong with that request. Please try again.