Community
Participate
Working Groups
Created attachment 286063 [details] eclipse-swt-aarch64.png While testing SWT for Apple silicon (565690) I noticed the text alignment of SWT.PUSH buttons is off. See screenshot attached.
I see this problem too. For some reason, the CENTER and RIGHT alignment behaviour is interchanged for SWT.PUSH and SWT.TOGGLE buttons. The Button text has RIGHT alignment when SWT.CENTER style is specified and vice-versa. This doesn't happen on with Mac x86_64. Any ideas?
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/179258
From https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code: The NSTextAlignment enumeration uses different numerical values for some constants on arm64 and x86_64 architectures. When referring to constants using numerical values, validate that you use the correct values on each architecture.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/179258 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0ffafe6d8e6bf13e386b1839f7721b07751efb38
Label and Text widgets have the same issue. The patch fixes the problem for all controls.
Fixed with I20210414-0330.
Verified with Build id: I20210518-0200