Permalink
Browse files

offsetHeight is NaN in pretty much every browser I test on my setup, …

…so let's use this
  • Loading branch information...
1 parent 52e5c26 commit 7c72eafe21500cd1a3f1f2f42a3c5f9a8a252f4a @mpasternak mpasternak committed Apr 24, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 autocomplete_light/static/autocomplete_light/autocomplete.js
@@ -425,9 +425,9 @@ yourlabs.Autocomplete.prototype.move = function(e) {
yourlabs.Autocomplete.prototype.fixPosition = function() {
// Insert the autocomplete container after the input.
var pos = $.extend({}, this.input.position(), {
- height: this.input.offsetHeight
- })
-
+ height: this.input.outerHeight()
+ });
+
this.box.insertAfter(this.input).css(
{top: pos.top + pos.height, left: pos.left});
}

0 comments on commit 7c72eaf

Please sign in to comment.