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.

2 scrollbars on MacOS Chrome #2

See original GitHub issue

Hi all, I have the same problem on my macOS with Chrome, which was mentioned in #10 by @dnish

I checked and removed all overflow properties on parent blocks, add the max-height rule, but still have 2 scrolls.

code:

<CustomScroll heightRelativeToParent="calc(100%)">
    {this.renderList(predictions)}
</CustomScroll>

here is an online demo, look at Predictions block.

untitled

What I do wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
rommguycommented, Mar 2, 2018

@AnarH93 I found a solution for the issue, it’s not simple, as it involves changing the dom structure of the custom scroll, and might break previous usages if someone assumed a specific dom structure, in css selectors for example. I will publish a major version with the fix sometime next week, including tests for the changes.

I’ve pushed the fix to a branch for now, it’s not fully ready but should work. Can you please try and check if the it fixes the issue in your site ? To check:

  • Clone the repo
  • checkout mac-os-double-scroll branch
  • run yarn start
  • run npm link
  • in your project directory, where the package.json is located, run npm link react-custom-scroll
  • If you consume the customScroll.css from a cdn or something like that, you’ll need to get it from the local node_modules/react-custom-scroll folder to get the linked version.

To check if you got the correct css, after you reload your project with the fixed version, check that the div with class “positioning” (first child of outer-container) has position: relative.

1reaction
rommguycommented, Mar 5, 2018

@AnarH93 I published version 3.0.0 with the fix. Please let me know if the issue persists. Also, I would appreciate if you could star this repo, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome: Scrollbar is showing on Windows but NOT Mac
On Mac, the scroll only appears when there is something to scroll, and the ugly arrows do NOT show. How can I may...
Read more >
Two Browsers Walked Into a Scrollbar | Filament Group, Inc.
This preference was confirmed to control how scrollbars behave in Chrome, Firefox, and Safari, and new Chromium-based Edge. The following video ...
Read more >
How do I fix this annoying Chrome for macOS scroll bar issue?
Try going to system settings > general > show scroll bars > always.
Read more >
An additional scroll bar appears at the right on many sites
Open any embedded youtube video in facebook and i get an additional scroll bar at the right. 2. The additional scroll bar appears...
Read more >
How to Show or Hide Scroll Bars in Mac? - WebNots
Scrolling Direction of Scroll Bars in Mac · Go to “Apple Menu > System Preferences…” and click on “Trackpad” option. · Click on...
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