Skip to content

Commit

Permalink
Fix #431: fixPosition on resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed May 29, 2015
1 parent 643066f commit 20bdbe1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autocomplete_light/static/autocomplete_light/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ yourlabs.Autocomplete.prototype.initialize = function() {
.on('focus.autocomplete', $.proxy(this.inputClick, this))
.on('keydown.autocomplete', $.proxy(this.inputKeyup, this));

$(window).on('resize', $.proxy(function() {
if (this.box.is(':visible')) this.fixPosition();
}, this));

if (ie == -1 || ie > 9) {
this.input.on('input.autocomplete', $.proxy(this.refresh, this));
}
Expand Down

0 comments on commit 20bdbe1

Please sign in to comment.