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.

Horizontal scrollbar for NTree

See original GitHub issue

This function solves the problem (这个功能解决的问题)

When the tree is too wide, it’s inconvenient to see the rightmost part.

And I failed to come up with a solution using NScrollbar because the width of an NTree is the width of its parent node instead of its real width.

Expected API (期望的 API)

<n-tree scroll-x /> to add a horizontal scrollbar for the tree when it’s too wide.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
07akionicommented, May 11, 2022

If we try to support it, scrollx must be specified.

0reactions
ouuancommented, May 11, 2022

Now when virtual scroll is enabled and NScrollbar is used, we need to scroll to the rightmost to see the vertical scrollbar. We need to either accept this behavior or use non-virtual scroll instead. NDataTable now supports virtual scroll with a horizontal scrollbar, it would be better if NTree can also support it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Horizontal scrollbar for NTree · Issue #2875 · tusen-ai/naive-ui
This function solves the problem (这个功能解决的问题) When the tree is too wide, it's inconvenient to see the rightmost part.
Read more >
Horizontal Scrollbar on tree of tables - Stack Overflow
You will get a vertical scroll bar when the height increases more than 500px and a horizontal scroll bar if the width increases...
Read more >
How to make the horizontal scrollbar of tree fixed in the bottom?
You can make the horizontal scrollbar fixed on the view by making the root element of the treeview as display: inline-block.
Read more >
Horizontal scrollbar not showing for tree list view
Hi Team, I have TreeListview it not showing horizontal scroll bar when content extending the length of treelist.Need to show horizontal ...
Read more >
Horizontal scrolling in tree - Prime Community Forum
I try PrimeFaces 3.0 M3 because I use trees and 2.2.1 trees are not compatible with IE9. I have a problem with horizontal...
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