Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: Fix duplicate scrollbar on Transfer List #19779

Merged
merged 2 commits into from
Oct 29, 2023
Merged

WebUI: Fix duplicate scrollbar on Transfer List #19779

merged 2 commits into from
Oct 29, 2023

Conversation

AgentConDier
Copy link
Contributor

The overlay scrollbars introduced in Firefox 100 take up no space, breaking the existing overflow detection. This may result in a second, defunct vertical scrollbar inside the Transfer List Panel with a travel of only 1px.
Add an extra check for scrollHeight != clientHeight which is able to detect an overflow independent of scrollbar style (MDN).

Before:
master_scrollbar

After:
patch-1_no-scrollbar

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.
@glassez glassez changed the title Web: Fix duplicate scrollbar on Transfer List WebUI: Fix duplicate scrollbar on Transfer List Oct 25, 2023
@glassez glassez requested review from a team October 25, 2023 14:29
@glassez glassez added the WebUI WebUI-related issues/changes label Oct 25, 2023
Copy link
Member

@Chocobo1 Chocobo1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else LGTM

src/webui/www/private/scripts/dynamicTable.js Outdated Show resolved Hide resolved
@Chocobo1 Chocobo1 added this to the 4.6.1 milestone Oct 26, 2023
@Chocobo1 Chocobo1 merged commit bf95eb5 into qbittorrent:master Oct 29, 2023
13 checks passed
@Chocobo1
Copy link
Member

@AgentConDier
Thank you!

@glassez
Copy link
Member

glassez commented Oct 29, 2023

@Chocobo1
As I can see it is intended to be backported, right?

@Chocobo1
Copy link
Member

Yes.

@luzpaz
Copy link
Contributor

luzpaz commented Oct 31, 2023

Are #17067 and #12703 solved by this PR ?

@AgentConDier
Copy link
Contributor Author

#17067 sounds like it should be fixed, yes.
I'm not entirely certain that #12703 is the same issue, I've sometimes had trouble with the table header in the content or peer list scrolling out of view, which is unrelated to this PR.

glassez pushed a commit to glassez/qBittorrent that referenced this pull request Nov 8, 2023
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 qbittorrent#19779.

---------

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants