tweak dropdown position. fixes #228
This commit is contained in:
parent
96c0166535
commit
1fc09825ed
@ -828,8 +828,10 @@
|
||||
|
||||
this.dropdown.show();
|
||||
this.ensureHighlightVisible();
|
||||
this.focusSearch();
|
||||
|
||||
this.positionDropdown();
|
||||
|
||||
this.focusSearch();
|
||||
},
|
||||
|
||||
// abstract
|
||||
@ -997,7 +999,7 @@
|
||||
function postRender() {
|
||||
results.scrollTop(0);
|
||||
search.removeClass("select2-active");
|
||||
self.positionDropdown();
|
||||
if (initial !== true) self.positionDropdown();
|
||||
}
|
||||
|
||||
function render(html) {
|
||||
@ -1010,9 +1012,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// position dropdown before making a potentially long request
|
||||
this.positionDropdown();
|
||||
|
||||
this.resultsPage = 1;
|
||||
opts.query({
|
||||
term: search.val(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user