Closed acarstoiu closed 2 days ago
I have checked on windows 11 with latest I build and dont see any such problem. So issue looks specific on linux. Thanks @elsazac for adding the label.
I guess this could be GTK theme dependent. Could you please try to use Adwaita?
Damn, yes, it's the theme So it's somewhere between GTK+ 3, SWT and KDE's Breeze theme port to GTK+.
Back in the days when we did the GTK 3 port it was decided that only Adwaita can be properly supported with the time we could have spent. As GTK3 literally allowed dozens of styling options at every widget it become increasingly hard to get all the sizes proper (especially if a theme uses not so common property). If someone is interested in investigating the issue further it's usually a matter of enhancing some of the computeSize methods in respective widget to properly calculate and return the size.
The funny thing is that the defect is slightly variable, for the very same checkboxes.
@acarstoiu : you can try to add -Dorg.eclipse.swt.internal.gtk.noThemingFixes
to the eclipse.ini
and see if that fixes your theme. The default settings in Eclipse are made for Adwaita, but they may not work nice with other themes.
Tested, makes it worse.
Describe the bug The last letter of checkbox labels gets cut or sometimes squeezed horizontally, as if the size of the label on the X axis is not computed correctly.
Screenshots This is taken from Preferences window.![20240705_075819](https://github.com/eclipse-platform/eclipse.platform.swt/assets/9536601/886e408c-74a9-49f4-b0b8-89ea7c78d496)
Environment: Operating System: Gentoo Linux 2.15 KDE Plasma Version: 6.1.1 GTK+: 3.24.41 Kernel Version: 6.9.7-gentoo (64-bit) Graphics Platform: Wayland Graphics Processor: AMD Radeon Graphics
Version since Eclipse 4.30 (java.vendor.version=Temurin-21.0.3+9)
Workaround (or) Additional context Using
GDK_BACKEND=x11
does not help. Actually, the attached picture is taken on XWayland.