From 8eb59751eabf025e8189c6470281f2da2e8ff56f Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Thu, 16 Oct 2025 13:35:41 +0530 Subject: [PATCH] fix(ListView): pagination dissapper on scroll --- frappe/public/js/frappe/list/base_list.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/list/base_list.js b/frappe/public/js/frappe/list/base_list.js index 1990ab8b4e..0d774b4a10 100644 --- a/frappe/public/js/frappe/list/base_list.js +++ b/frappe/public/js/frappe/list/base_list.js @@ -451,11 +451,13 @@ frappe.views.BaseList = class BaseList { set_result_height() { this.$result[0].style.removeProperty("height"); // place it at the footer of the page - let result_element_dom = this.$result[0].getBoundingClientRect(); + const resultContainerHeight = - window.innerHeight - this.$paging_area.get(0).offsetHeight - result_element_dom.top; + window.innerHeight - + this.$result.get(0).offsetTop - + this.$paging_area.get(0).offsetHeight; this.$result.parent(".result-container").css({ - height: resultContainerHeight + "px", + height: resultContainerHeight - (frappe.is_mobile() ? 100 : 0) + "px", }); this.$result[0].style.height =