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 5ecd672809a8bf57badeaba53e361511c22f2c49 Author: Daniel Gruno <[email protected]> AuthorDate: Thu Nov 18 00:28:03 2021 +0100 consolidate logging --- webui/js/source/listview-flat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js index 6e7e070..727145b 100644 --- a/webui/js/source/listview-flat.js +++ b/webui/js/source/listview-flat.js @@ -24,7 +24,6 @@ function calc_per_page() { let width = Math.max(body.scrollWidth, html.clientWidth, html.scrollWidth); let email_h = 40; - console.log("Window area: %ux%u".format(width, height)); if (width < 600) { console.log("Using narrow view, halving emails per page..."); email_h = 80; @@ -32,7 +31,7 @@ function calc_per_page() { height -= 180; let per_page = Math.max(5, Math.floor(height / email_h)); per_page -= per_page % 5; - console.log("We can display %u emails per page".format(per_page)); + console.log("Viewport is %ux%u. We can show %u emails per page".format(width, height, per_page)); return per_page; }
