fix(ListView): pagination dissapper on scroll
This commit is contained in:
parent
f7aa85d4ae
commit
8eb59751ea
1 changed files with 5 additions and 3 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue