Skip to content

Text sometimes partially disappears in Label when using autoscaling #2166

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

Open
selundqma opened this issue May 20, 2025 · 1 comment
Open

Comments

@selundqma
Copy link

We set a text in an org.eclipse.swt.widgets.Label and it is showed nicely when creating an RCP application using Eclipse 2024-12 in all scaling variants. But, in newer versions (2025-03, 2025-06 M1, 2025-06 M2) some of text disappears, "wreco.", when using different scaling in Windows. Like, on my laptop it works fine in 125% scaling. Moving over to 150% and some of the text is missing in the Label. By removing the autoscaling or changing to an older Eclipse version, the text appears also in the 150% case. So... there might be an issue with how sizes are calculated when using autoscaling in higher scaling >= 150%.

OS: Windows 11
Java: JDK 21.0.6.7.1
Issue seen from: Eclipse 2025-03
Issue not seen in: Eclipse 2024-12

Scaling parameters used

-Dswt.autoScale=quarter
-Dswt.autoScale.method=smooth

Eclipse 2024-12 (autoscaling + 150% OS scaling)
Image

Eclipse 2025-06 M2 (autoscaling + 150% OS scaling)
Image

By setting different window sizes in Application.e4xmi, one can see that the text either fits on one line or it wraps correctly.... OR! The last part of the text, "wreco.", disappears.

A test RCP application has been attached. The screenshots were taken from this app.

LabelTest.zip

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