]> _ Git - fluidbook-html5.git/commitdiff
Reset scroll position when repopulating search results. Done #1635 @0.5
authorStephen Cameron <stephen@cubedesigners.com>
Fri, 8 Sep 2017 13:55:10 +0000 (15:55 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Fri, 8 Sep 2017 13:55:10 +0000 (15:55 +0200)
js/libs/fluidbook/fluidbook.nav.js

index d80ff7cf106a3e5a492400fab9c8c96e1981f924..89f76ad574fc5708c85b9c115e000fa09a83422b 100644 (file)
@@ -713,7 +713,7 @@ FluidbookNav.prototype = {
 
 
                 fluidbook.hideSearchHints();
-                fluidbook.menuSearchResults.fadeIn(300);
+                fluidbook.menuSearchResults.fadeIn(300).scrollTop(0);
 
                 // On some phones, the height of the search results is miscalculated due to the
                 // keyboard being open and reducing the available window height. We need to wait until