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

Tree headers are scrollable in default state #4

Open
KAbakumov opened this issue Sep 14, 2018 · 2 comments
Open

Tree headers are scrollable in default state #4

KAbakumov opened this issue Sep 14, 2018 · 2 comments

Comments

@KAbakumov
Copy link

Open the example provided in the readme.

Set "treeStyle" to the following:

const treeStyles = {
  color: 'white',
  fill: 'white',
  width: '50%'
}

You'll see a scrollbar on collapsed nodes:
image

Collapsed elements are scrollable. Scrollbar disappears after expanding element.

Modified example, which reproduces the problem: https://codesandbox.io/s/y0rozoy2yx

@KAbakumov
Copy link
Author

After some investigation I made the following conclusion.
Style combination:

left: 40
width: 100% 

Is a workaround to hide the scroll bar outside of the page.
However, even in the example, provided in the readme, you can scroll down tree headers and get the following result:
image

@drcmda
Copy link
Owner

drcmda commented Oct 29, 2018

@KAbakumov it's probably missing an overflow: hidden somewhere. Would you be up for making a PR?

drcmda added a commit that referenced this issue Nov 29, 2018
Update index.js to fix Issue #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants