mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 22:03:27 -07:00
WebUI: Do not rerender when table height is 0
This commit is contained in:
parent
b4a16f6464
commit
277024d0b8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue