From: Alexander Butenko Date: Mon, 30 Nov 2009 21:05:20 +0000 (+0100) Subject: Don't automatically fill in form suggestion if it's only one X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abba290278f5e8f9c49c7b391ca77c83ad01fefc;p=midori Don't automatically fill in form suggestion if it's only one --- diff --git a/data/autosuggestcontrol.js b/data/autosuggestcontrol.js index fc0d251b..0de960b2 100644 --- a/data/autosuggestcontrol.js +++ b/data/autosuggestcontrol.js @@ -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); }