Merge pull request #35927 from iamejaaz/sidebar-title-ui

fix(listView): pagination visible on scroll
This commit is contained in:
Ejaaz Khan 2026-01-14 00:07:55 +05:30 committed by GitHub
commit 73383aee62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,7 +435,10 @@ frappe.views.BaseList = class BaseList {
this.$result[0].style.removeProperty("height");
// place it at the footer of the page
const resultContainerHeight = window.innerHeight - this.$paging_area.get(0).offsetHeight;
let resultContainerHeight = window.innerHeight - this.$paging_area.get(0).offsetHeight;
if (!frappe.is_mobile()) {
resultContainerHeight = resultContainerHeight - this.$result.get(0).offsetTop;
}
this.$result.parent(".result-container").css({
height: resultContainerHeight - (frappe.is_mobile() ? 100 : 0) + "px",
});