-
Notifications
You must be signed in to change notification settings - Fork 211
Text sometimes partially disappears in Section when using autoscaling #2980
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
Comments
I can reproduce the error by adding the style-bit For me it happens when using a monitor zoom of 175% in my ThinkVision 34'' (true-split is deactivated). I assume this is another flavor of eclipse-platform/eclipse.platform.swt#2003 and the layout might be the culprit, but I haven't analyzed this in detail. Workaround
@akoch-yatta / @amartya4256 can you please look into it and see if it's indeed related to eclipse-platform/eclipse.platform.swt#2003 ? |
Looks like a similar issue, yes, but it doesn't look exactly the same. However, still investigating it @fedejeanne |
This commit adds one additional point to the width when calculating the minimum size of the textLabel in ExpandableComposite. This serves as a workaround for a current limitation in the SWT implementation on Windows. With certain zoom settings (e.g., 125% or 175%), depending on the length of the label text, the calculated width may be too small, causing the text to wrap unnecessarily. This is intended as a temporary workaround. Contributes to eclipse-platform#2980
This commit adds one additional point to the width when calculating the minimum size of the textLabel in ExpandableComposite. This serves as a workaround for a current limitation in the SWT implementation on Windows. With certain zoom settings (e.g., 125% or 175%), depending on the length of the label text, the calculated width may be too small, causing the text to wrap unnecessarily. This is intended as a temporary workaround. Contributes to eclipse-platform#2980
Maybe a stupid question, but will the suggested fix also handle the missing text using org.eclipse.swt.widgets.Label? Or is a separate ticket needed on another GitHub for that case? We use the SWT.WRAP flag for the labels. And.. in the same way as text disappears from Section, it also happens with Label. |
I assume "the fix" is #2986? That PR only touches the class Could you provide more details and a reproducer for the issue with the label? I can imagine we would need another Issue/PR for that. |
This commit adds one additional point to the width when calculating the minimum size of the textLabel in ExpandableComposite. This serves as a workaround for a current limitation in the SWT implementation on Windows. With certain zoom settings (e.g., 125% or 175%), depending on the length of the label text, the calculated width may be too small, causing the text to wrap unnecessarily. This is intended as a temporary workaround. Contributes to #2980
New issue created for the SWT Label case. Attached a Reproducer in that ticket. |
Uh oh!
There was an error while loading. Please reload this page.
We set the text "Service Properties" in a Section 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 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 Section. By removing the autoscaling from the ini file, the text appears also in the 150% case. So... there might be an issue with how sizes are calculated when using autoscaling.
OS: Windows 11
Java: JDK 21.0.6.7.1
Issue seen from: Eclipse 2025-03
Scaling parameters used in the ini file
The section is created with the FormToolkit like this:
See attached images for the different cases (no autoscaling + 125%/150% OS scaling / autoscaling + 125%/150% OS scaling)
We also have issues with disappearing text in the same manner in org.eclipse.swt.widgets.Label where the last word sometimes (according to the scenarios mentioned above) is going missing.
-Dswt.autoScale=exact yields the same result.
The text was updated successfully, but these errors were encountered: