Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EraseItem listener to a Tree causes text to be slightly truncated #1279

Open
eobrienPilz opened this issue Jun 12, 2024 · 2 comments
Open

Comments

@eobrienPilz
Copy link

If a tree labelprovider is providing an Image and the tree has a SWT.EraseItem listener then the last character of the text in the first column is not completely drawn.

e.g. To see the issue add this code to ExtendedMarkersView and put a problem in the problem view.

tree.addListener(SWT.EraseItem, new Listener() {
@OverRide
public void handleEvent(Event event) {
}
});

I would expect the text in this case to be drawn correctly.

You can see below the last character is a little truncated.
image

    • All OS
    • [x ] Windows
    • Linux
    • macOS

I see the issue on Windows 10 using Java 17 JDK

@Phillipus
Copy link
Contributor

I couldn't reproduce this with a simple stand-alone SWT snippet. Perhaps it's a problem with the ExtendedMarkersView? If the problem is there perhaps you could open an issue on Platform UI - https://github.com/eclipse-platform/eclipse.platform.ui/issues

@eobrienPilz
Copy link
Author

It's not just ExtendedMarkersView, I have seen it with other views. Ill raise it on platform, It's only reproducible if the label provider provides an image so might not be a SWT problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants