Skip to content
This repository
Browse code

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

…ing, add it.
  • Loading branch information...
commit 66f537dc3aa2d7120194bbca1d5e54ff21946570 1 parent 236f267
Normann Lou authored March 27, 2012 chillu committed March 27, 2012
5  admin/thirdparty/chosen/chosen/chosen.jquery.js
@@ -544,7 +544,8 @@ Copyright (c) 2011 by Harvest
544 544
     };
545 545
 
546 546
     Chosen.prototype.results_show = function() {
547  
-      var dd_top;
  547
+	//patch applied: https://github.com/harvesthq/chosen/issues/300, add variable declaration dd_width
  548
+      var dd_top, dd_width;
548 549
       if (!this.is_multiple) {
549 550
         this.selected_item.addClass("chzn-single-with-drop");
550 551
         if (this.result_single_selected) {
@@ -552,6 +553,8 @@ Copyright (c) 2011 by Harvest
552 553
         }
553 554
       }
554 555
       dd_top = this.is_multiple ? this.container.height() : this.container.height() - 1;
  556
+	//patch applied: https://github.com/harvesthq/chosen/issues/300, add variable assignment dd_width
  557
+	  dd_width = this.container.width() - get_side_border_padding(this.dropdown);
555 558
       this.dropdown.css({
556 559
         "top": dd_top + "px",
557 560
         "left": 0

0 notes on commit 66f537d

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