question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Double-scroll areas after expanding all lines

See original GitHub issue

Please ensure:

  • The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.
  • The bug happens after clearing extension cache. The “Clear cache” button below can also be found at the bottom of the options page.

Example URLs

https://github.com/refined-github/refined-github/pull/5422/commits/1bb5e36ce3734a045c5e4aaeeba6e0d29d381789#diff-84b7041bfeae43fea26aac38d2eb71d1c2ce5d7bdb2cd6a9a7b3502662a26da8

Extension version

22.3.3

Browser(s) used

Brave – Version 1.35.100 Chromium: 98.0.4758.87 (Official Build) (arm64)

Description

  1. View 1bb5e36 (#5422)

  2. Expand file source/features/collapsible-content-button.tsx

  3. Scroll up and down

Expected: Only one scroll area for the webpage’s document’s body or window is present

Actual: There is another scroll area present for the file container element with a little amount of scroll leeway.

Screen Recording:

https://user-images.githubusercontent.com/517469/157112498-a2ec92ff-bc3c-4f2f-a6fc-bec678a3683c.mp4

Include in this issue:

  • Screenshots/video/gif demonstrating the bug, if it’s visual
  • Console errors, if any

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
cheap-glitchcommented, Mar 9, 2022

I haven’t checked but I assume that that would change (break) the number text alignment

Actually, those are not the line numbers but the +/- diff signs, which are hidden by RGH anyway.

1reaction
fregantecommented, Mar 9, 2022
overflow-y: hidden

vade retro satana

As the name suggests, that just hides the issue.

I found the cause by deleting one element at a time in the table:

Screen Shot 6

This is the line number and that top: 1px pushes it 1px outside the table, which lengthens the scrollable content. A fix could probably just add margin-bottom: -1px to it but I don’t remember if that actually reduces the scrollable height.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Double scroll sections in row - flutter - Stack Overflow
It throws an error that scrollController is used in multiple places. Another problem is that scrolling the left side till the end does...
Read more >
scrollbar - the Tcler's Wiki!
After packing all the widgets, Tcl "shrink-wraps" the top-level window as tightly as it can around the widgets, squeezing out all the excess...
Read more >
Expanding a collapsible set should scroll you to the top of it's ...
I fixed this on our site by scrolling to the top of the clicked header if it is off the top of the...
Read more >
Double scroll bar on homepage - WordPress.org
It appears to be an issue caused by Smart Slider 3, but only on the home page. My other pages that use it...
Read more >
Double-scroll Chua atractor. | Download Scientific Diagram
The purpose of this article is to build an introductory approach to chaos theory from the Chua' oscillator for students of mathematics, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found