From: soufiane Date: Wed, 11 Feb 2026 11:09:46 +0000 (+0100) Subject: wait #8004 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2bb68eaba7eaa52c0d14bfc1776a9b36266d1ac5;p=fluidbook-html5.git wait #8004 --- diff --git a/js/libs/fluidbook/fluidbook.search.js b/js/libs/fluidbook/fluidbook.search.js index 915d38cc..6dd9cd69 100644 --- a/js/libs/fluidbook/fluidbook.search.js +++ b/js/libs/fluidbook/fluidbook.search.js @@ -46,10 +46,6 @@ FluidbookSearch.prototype = { this.isSearchfloatActive = true; } - if(!this.isSearchfloatActive) { - this.callNumber = 1; - } - this.searchfloat = new FluidbookSearchFloat(this.fluidbook); }, @@ -134,6 +130,9 @@ FluidbookSearch.prototype = { }, updateResultsNav: function (resultPage) { + if(!this.isSearchfloatActive) { + this.callNumber = 0; + } // If we are in landscape view, there are 2 pages visible, // so we only want even pages in our results. The resultPages // includes all pages by default so we need to convert odd pages