From 2bebbd99cf600d57ca6e8513dd833fc5e52461e2 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Tue, 13 Mar 2012 11:21:59 -0400 Subject: [PATCH] AutoSuggest: don't force-scroll browser; that's irritating By default, Dijits and things that inherit from Dijits (at least in Dojo 1.3.3 that we're still using), have a true value for an attribute called scrollOnFocus. This makes your browser jump to ensure that the widget that just received focus is in view. You don't always want this though. Try expanding the extras on the record detail page of the TPAC without this commit, but with AutoSuggest enabled, for example. This commit sets the scrollOnFocus attribute to false for the AutoSuggest widget. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Mike Rylander --- Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js b/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js index e145c2d3b8..81927517b9 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js @@ -52,6 +52,7 @@ if (!dojo._hasResource["openils.widget.AutoSuggest"]) { dojo.declare( "openils.widget.AutoSuggest", [dijit.form.ComboBox], { + "scrollOnFocus": false, "labelAttr": "match", "labelType": "html", "searchAttr": "term", -- 2.11.0