This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 509ab7c27079fff37985303ee678496bbba55ec0 Author: Daniel Gruno <[email protected]> AuthorDate: Fri Dec 10 20:40:16 2021 +0100 find the actual placement Y position --- webui/js/source/listview-flat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js index be2810f..9030eb3 100644 --- a/webui/js/source/listview-flat.js +++ b/webui/js/source/listview-flat.js @@ -31,9 +31,9 @@ function calc_per_page() { let email_h = G_current_listmode_compact ? compact_email_height : preview_email_height; if (width < narrow_width) { console.log("Using narrow view, reducing emails per page..."); - email_h = G_current_listmode_compact ? compact_email_height * 1.5 : preview_email_height*2; + email_h = G_current_listmode_compact ? compact_email_height * 1.5 : preview_email_height * 2; } - height -= document.getElementById("emails").scrollHeight + 4; // top area height plus spacing + height -= document.getElementById("emails").getBoundingClientRect().y + 16; // top area height plus footer email_h += 2; let per_page = Math.max(5, Math.floor(height / email_h)); per_page -= per_page % 5;
