Merge pull request #352 from kchung/master
Reevaluate dropdownCss when calling positioning dropdown.
This commit is contained in:
commit
9003c2dd18
@ -895,11 +895,11 @@
|
|||||||
this.dropdown.removeClass("select2-drop-above");
|
this.dropdown.removeClass("select2-drop-above");
|
||||||
}
|
}
|
||||||
|
|
||||||
css = {
|
css = $.extend({
|
||||||
top: dropTop,
|
top: dropTop,
|
||||||
left: offset.left,
|
left: offset.left,
|
||||||
width: width
|
width: width
|
||||||
};
|
}, evaluate(this.opts.dropdownCss));
|
||||||
|
|
||||||
this.dropdown.css(css);
|
this.dropdown.css(css);
|
||||||
},
|
},
|
||||||
@ -979,7 +979,6 @@
|
|||||||
this.dropdown.show();
|
this.dropdown.show();
|
||||||
|
|
||||||
this.positionDropdown();
|
this.positionDropdown();
|
||||||
this.dropdown.css(evaluate(this.opts.dropdownCss));
|
|
||||||
this.dropdown.addClass("select2-drop-active");
|
this.dropdown.addClass("select2-drop-active");
|
||||||
|
|
||||||
this.ensureHighlightVisible();
|
this.ensureHighlightVisible();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user