[Xfce4-commits] <midori:master> Don't automatically fill in form suggestion if it's only one
Christian Dywan
noreply at xfce.org
Mon Nov 30 22:08:02 CET 2009
Updating branch refs/heads/master
to abba290278f5e8f9c49c7b391ca77c83ad01fefc (commit)
from a64a583c4ac6f429135a14ad5eedcad16743af27 (commit)
commit abba290278f5e8f9c49c7b391ca77c83ad01fefc
Author: Alexander Butenko <a.butenka at gmail.com>
Date: Mon Nov 30 22:05:20 2009 +0100
Don't automatically fill in form suggestion if it's only one
data/autosuggestcontrol.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/autosuggestcontrol.js b/data/autosuggestcontrol.js
index fc0d251..0de960b 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);
}
More information about the Xfce4-commits
mailing list