Tree.setTopItem fails? [message #502515] |
Tue, 08 December 2009 16:15 |
Eclipse Guest Messages: 93 Registered: February 2013 Location: Vienna |
Member |
|
|
Hi,
found something strange with the tree widget:
1.) If I set a tree item as top item that can't be the top item because there are not enough items below it (for example the last item visible) then the tree jumps to the top root item, i.e. it scrolls to the top. Is this a bug or feature? I think it would be more logical to scroll to the end of the tree.
2.) I call Tree.setTopItem and thereafter the method Tree.getTopItem and sometimes the items differ. The tree item I want to have as top item wasn't set as desired. This occurs even when the tree item is at the middle of the large tree, i.e. there are enough tree items below it such that it should be possible to set it as top item. (note: setting the top item is done after a refresh and a reveal of that item in the tree viewer)
The behavior is observed under Windows 2k and Eclipse 3.2 in a large tree which is managed by TreeViewer, scroll bars are both shown.
Any ideas what's the problem?
Regards,
Steffen
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02818 seconds