mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 02:08:19 +03:00
WebUI: Fix duplicate scrollbar on Transfer List
The overlay scrollbars introduced in Firefox 100 take up no space, breaking the existing overflow detection. Add an extra check for `scrollHeight != clientHeight` which is able to detect an overflow independent of scrollbar style. PR #19779. --------- Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
a1317e24f9
commit
a396e0df26
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ window.qBittorrent.DynamicTable = (function() {
|
|||
|
||||
let n = 2;
|
||||
|
||||
while (panel.clientWidth != panel.offsetWidth && n > 0) { // is panel vertical scrollbar visible ?
|
||||
// is panel vertical scrollbar visible or does panel content not fit?
|
||||
while (((panel.clientWidth != panel.offsetWidth) || (panel.clientHeight != panel.scrollHeight)) && (n > 0)) {
|
||||
--n;
|
||||
h -= 0.5;
|
||||
$(this.dynamicTableDivId).style.height = h + 'px';
|
||||
|
|
Loading…
Reference in a new issue