From 277024d0b845bb9ff91b413674e0d0fd3263b9f4 Mon Sep 17 00:00:00 2001 From: tehcneko Date: Wed, 23 Apr 2025 01:45:14 +0100 Subject: [PATCH] WebUI: Do not rerender when table height is 0 --- src/webui/www/private/scripts/dynamicTable.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index d05cd8c53..4f49cc610 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -911,6 +911,9 @@ window.qBittorrent.DynamicTable ??= (() => { // set the scrollable height this.table.style.height = `${rows.length * this.rowHeight}px`; + if (this.dynamicTableDiv.offsetHeight === 0) + return; + this.renderedHeight = this.dynamicTableDiv.offsetHeight; // show extra 6 rows at top/bottom to reduce flickering const extraRowCount = 6; // how many rows can be shown in the visible area