r2834 - autocomplete: code review
Author: joern.zaefferer
Date: Tue Jun 23 06:01:10 2009
New Revision: 2834
Modified:
branches/dev/autocomplete/ui/ui.autocomplete.js
Log:
autocomplete: code review
Modified: branches/dev/autocomplete/ui/ui.autocomplete.js
==============================================================================
--- branches/dev/autocomplete/ui/ui.autocomplete.js (original)
+++ branches/dev/autocomplete/ui/ui.autocomplete.js Tue Jun 23 06:01:10 2009
@@ -779,6 +779,7 @@
// TODO refactor, too much going on here
show: function() {
var offset = $(input).offset();
+ // TODO replace top/left with positionTo, with configurable offset;
important for collision detection
element.css({
width: typeof options.width == "string" || options.width > 0 ?
options.width : $(input).width(),
top: offset.top + input.offsetHeight,