fix(ListView): pagination dissapper on scroll

This commit is contained in:
Ejaaz Khan 2025-10-16 13:35:41 +05:30
parent f7aa85d4ae
commit 8eb59751ea

View file

@ -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 =