Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 484411 - [win32] Text cut off / drawing error in Tree / TreeViewer containing an Image and an EraseItem listener
Summary: [win32] Text cut off / drawing error in Tree / TreeViewer containing an Image...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5.1   Edit
Hardware: PC Windows 8
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 11:24 EST by Sebastian Ratz CLA
Modified: 2020-05-16 16:53 EDT (History)
4 users (show)

See Also:


Attachments
Screenshot demonstrating the problem (66.21 KB, image/png)
2015-12-15 11:24 EST, Sebastian Ratz CLA
no flags Details
Java code to replicate the problem (2.09 KB, text/plain)
2015-12-15 11:25 EST, Sebastian Ratz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Ratz CLA 2015-12-15 11:24:54 EST
Created attachment 258699 [details]
Screenshot demonstrating the problem

Situation:

- Tree / TreeViewer containing an Image in the first column
- An SWT.EraseItem listener attached to the tree


This results in drawing errors in the first column:

- The position of the image and the text is shifted to the right.
- The position of the image is shifted upwards.
- The text gets cut off on the right


The attached screenshot demonstrates the problem. The upper TreeViewer does have an EraseItem listener attached, the lower one does not. They are otherwise identical.

Initial tests indicate that this is a problem only occurring on Windows.

The code for the minimal example in the screenshots is attached as well.
Comment 1 Sebastian Ratz CLA 2015-12-15 11:25:50 EST
Created attachment 258700 [details]
Java code to replicate the problem
Comment 2 Eclipse Genie CLA 2020-05-16 16:53:42 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.