Summary: | DragSource: if tree is ownerdraw/full-selection, strange gray area is shown on mouse-down | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Thomas Singer <eclipse> | ||||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | nikita, ts-swt | ||||||
Version: | 4.4 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 7 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Thomas Singer
2014-06-29 05:43:13 EDT
Created attachment 244647 [details]
Sample to reproduce
Created attachment 244648 [details]
Screenshot
This seems to be related to the tree item's text (though when using owner-draw, this should not be used): change TreeItem iItem = new TreeItem(tree, 0); iItem.setData("TreeItem (0) -" + i); to TreeItem iItem = new TreeItem(tree, 0); iItem.setText("hello world"); iItem.setData("TreeItem (0) -" + i); and the gray area will be much wider. The work-around is to not use the SWT.FULL_SELECTION flag. :( I can't reproduce this problem any more. |