| [news.eclipse.platform.swt] Re: Resize Tree on Expand |
Tom Schindl wrote:
Eric is right but one warning on win32 this will only work since 3.3 in 3.2 the Tree always returned the size it needs display the top-level items.
Tom
Eric Rizzo schrieb:Tito wrote:Hello, this is my first post here.
I've a Tree with a TreeViewer. I don't want to set a fixed size, but i need to view all lines on the tree. When the tree is collapsed its all OK, but when i expand one node the vertical scroll bar appears.
Is there a way to resize this tree when one node is expanded?
This likely depends on what kind of layout you have the Tree contained in. One thing you can try is to call layout() on the parent Composite after the tree is expanded.
Hope this helps, Eric