Skip to content

Text sometimes partially disappears in Label when using autoscaling #2166

@selundqma

Description

@selundqma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions