[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Resize Tree on Expand

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