Skip to content

Commit 22b3261

Browse files
committed
Reevaluate dropdownCss when positioning dropdown
1 parent 0b85974 commit 22b3261

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

select2.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,11 +895,11 @@
895895
this.dropdown.removeClass("select2-drop-above");
896896
}
897897

898-
css = {
899-
top:dropTop,
900-
left:offset.left,
901-
width:width
902-
};
898+
css = $.extend({
899+
top: dropTop,
900+
left: offset.left,
901+
width: width
902+
}, evaluate(this.opts.dropdownCss));
903903

904904
this.dropdown.css(css);
905905
},
@@ -979,7 +979,6 @@
979979
this.dropdown.show();
980980

981981
this.positionDropdown();
982-
this.dropdown.css(evaluate(this.opts.dropdownCss));
983982
this.dropdown.addClass("select2-drop-active");
984983

985984
this.ensureHighlightVisible();

0 commit comments

Comments
 (0)