From 2bb68eaba7eaa52c0d14bfc1776a9b36266d1ac5 Mon Sep 17 00:00:00 2001 From: soufiane Date: Wed, 11 Feb 2026 12:09:46 +0100 Subject: [PATCH] wait #8004 --- js/libs/fluidbook/fluidbook.search.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.5