1
0
mirror of synced 2024-11-30 00:26:03 +03:00

when opened scroll to selected item. fixes #1408. closes #1411

This commit is contained in:
Igor Vaynberg 2013-06-12 17:49:32 -07:00
parent b1867b5341
commit 29129008d5

View File

@ -1290,7 +1290,6 @@ the specific language governing permissions and limitations under the Apache Lic
this.positionDropdown(); this.positionDropdown();
this.dropdown.addClass("select2-drop-active"); this.dropdown.addClass("select2-drop-active");
this.ensureHighlightVisible();
// attach listeners to events that can change the position of the container and thus require // attach listeners to events that can change the position of the container and thus require
// the position of the dropdown to be updated as well so it does not come unglued from the container // the position of the dropdown to be updated as well so it does not come unglued from the container
@ -1542,7 +1541,6 @@ the specific language governing permissions and limitations under the Apache Lic
} }
function postRender() { function postRender() {
results.scrollTop(0);
search.removeClass("select2-active"); search.removeClass("select2-active");
self.positionDropdown(); self.positionDropdown();
} }