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 horizontal scroll #2330

Open
1 task done
saskliutas opened this issue Nov 7, 2024 · 1 comment
Open
1 task done

Tree horizontal scroll #2330

saskliutas opened this issue Nov 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@saskliutas
Copy link
Member

saskliutas commented Nov 7, 2024

Describe the bug (current behavior)

Selected and hovered TreeNode styling is off when Tree component has horizontal scroll.

Expected Behavior

It was possible to add horizontal scroll to the Tree component in 3.12.0 version and styling of TreeNode was alright: https://stackblitz.com/edit/github-mmlry8-kslxf8

Link to minimal repro

https://stackblitz.com/edit/github-mmlry8-pkdhkj

Steps To Reproduce

  1. Expand Tree couple levels deep.
  2. Select nodes from different levels.
  3. Scroll to the right.
  4. Selected nodes in different levels have different size outline and active background coloring.

Package Version

  • I'm using the latest version of iTwinUI.

Anything else?

No response

@r100-stack
Copy link
Member

r100-stack commented Nov 7, 2024

Thanks for reporting this issue.

We noticed this issue shortly after changing our inner virtualization implementation in 3.13.0. We addressed part of it in #2170, which was released in 3.13.4. We had a draft PR to try to fix the remaining parts but had to close it since it turned out to be more involved. I took some time today to investigate this but couldn't come up with a quick solution as of now.

But we added this to our backlog and will investigate it deeper in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants