Horizontal scrollbar for NTree
See original GitHub issueThis 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:
- Created a year ago
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If we try to support it, scrollx must be specified.
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.