Permalink
Browse files

Reevaluate dropdownCss when positioning dropdown

  • Loading branch information...
1 parent 0b85974 commit 22b32614ea49ab4a96167ee54ec32611a7e60dc5 @kchung kchung committed Aug 23, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 select2.js
View
@@ -895,11 +895,11 @@
this.dropdown.removeClass("select2-drop-above");
}
- css = {
- top:dropTop,
- left:offset.left,
- width:width
- };
+ css = $.extend({
+ top: dropTop,
+ left: offset.left,
+ width: width
+ }, evaluate(this.opts.dropdownCss));
this.dropdown.css(css);
},
@@ -979,7 +979,6 @@
this.dropdown.show();
this.positionDropdown();
- this.dropdown.css(evaluate(this.opts.dropdownCss));
this.dropdown.addClass("select2-drop-active");
this.ensureHighlightVisible();

0 comments on commit 22b3261

Please sign in to comment.