1
0
mirror of synced 2025-02-04 14:19:23 +03:00

remove shrinking animation on choice remove because it causes jitter. fixes #326

This commit is contained in:
Igor Vaynberg 2012-08-16 22:11:14 -07:00
parent 8bab0b6f70
commit cf01ec6cb5

View File

@ -2032,7 +2032,7 @@
.bind("click dblclick", this.bind(function (e) { .bind("click dblclick", this.bind(function (e) {
if (!this.enabled) return; if (!this.enabled) return;
$(e.target).closest(".select2-search-choice").fadeOut('fast').animate({width: "hide"}, 50, this.bind(function(){ $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){
this.unselect($(e.target)); this.unselect($(e.target));
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
this.close(); this.close();