AutoSuggest: don't force-scroll browser; that's irritating user/senator/as-scrollonfocus-false
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 13 Mar 2012 15:21:59 +0000 (11:21 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 13 Mar 2012 15:21:59 +0000 (11:21 -0400)
commit193cb06a724f91fb61963ede7b980c58c8fb3537
treef5d1c80b64bd6f37800e1139319747b4662d57b3
parent3b14fa68e83dc926cb9288fe210894b645b14fd2
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 <lebbeous@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/AutoSuggest.js