mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
WebUI: avoid saving invalid size
Don't save the wrong size when the tab is collapsed. Reported in: https://github.com/qbittorrent/qBittorrent/pull/21215/files#r1966052959 PR #22537.
This commit is contained in:
parent
5465605377
commit
abafbc0685
1 changed files with 3 additions and 1 deletions
|
@ -1515,6 +1515,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
},
|
},
|
||||||
column: "mainColumn",
|
column: "mainColumn",
|
||||||
onResize: window.qBittorrent.Misc.createDebounceHandler(500, (e) => {
|
onResize: window.qBittorrent.Misc.createDebounceHandler(500, (e) => {
|
||||||
|
const isHidden = (parseInt(document.getElementById("propertiesPanel").style.height, 10) === 0);
|
||||||
|
if (!isHidden)
|
||||||
saveColumnSizes();
|
saveColumnSizes();
|
||||||
}),
|
}),
|
||||||
height: null
|
height: null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue