Summary: | [aarch64] SWT.PUSH button text alignment wrong | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Holger Staudacher <holger.staudacher> | ||||
Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | lshanmug | ||||
Version: | 4.20 | ||||||
Target Milestone: | 4.20 M2 | ||||||
Hardware: | PC | ||||||
OS: | Mac OS X | ||||||
See Also: |
https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/179258 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0ffafe6d8e6bf13e386b1839f7721b07751efb38 |
||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 572797 | ||||||
Attachments: |
|
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 |
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.