]> spindle.queued.net Git - midori/commitdiff
Don't automatically fill in form suggestion if it's only one
authorAlexander Butenko <a.butenka@gmail.com>
Mon, 30 Nov 2009 21:05:20 +0000 (22:05 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 30 Nov 2009 21:05:20 +0000 (22:05 +0100)
data/autosuggestcontrol.js

index fc0d251bb93cffbf5f88c8a861030cf76c4aad53..0de960b2f663fb9ea609e301d446d0f2c641be83 100644 (file)
@@ -63,7 +63,7 @@ AutoSuggestControl.prototype.createDropDown = function () {
     this.layer = document.createElement("div");
     this.layer.className = "suggestions";
     this.layer.style.visibility = "hidden";
-    this.layer.style.width = this.textbox.offsetWidth + 10;
+    this.layer.style.width = this.textbox.offsetWidth;
 
     //when the user clicks on the a suggestion, get the text (innerHTML)
     //and place it into a textbox
@@ -158,7 +158,7 @@ AutoSuggestControl.prototype.handleKeyUp = function (oEvent /*:Event*/) {
         this.hideSuggestions();
     } else {
         //request suggestions from the suggestion provider with typeahead
-        this.provider.requestSuggestions(this, true);
+        this.provider.requestSuggestions(this, false);
     }