From: Stephen Cameron Date: Fri, 8 Sep 2017 13:55:10 +0000 (+0200) Subject: Reset scroll position when repopulating search results. Done #1635 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b1b9416ab881410430a400800dceef4e52490ac;p=fluidbook-html5.git Reset scroll position when repopulating search results. Done #1635 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index d80ff7cf..89f76ad5 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -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