Bug 574328

Summary: macOS 11: SWT radio button has text and knob misaligned
Product: [Eclipse Project] Platform Reporter: Alexei Svitkine <alexei.svitkine>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.20   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Screenshot of alignment issue none

Description Alexei Svitkine CLA 2021-06-19 10:04:40 EDT
Created attachment 286633 [details]
Screenshot of alignment issue

macOS 11: SWT radio button has text and knob misaligned.

This can be reproduced on macOS Big Sur with the SWT examples from Eclipse 4.20. On the Button tab, select SWT.RADIO and 100x100 size.

The text and radio button knobs are not aligned - the knob appears at the top left corner instead of in-line with the text. See attachment.

I believe this is not a regression in SWT itself as I have an older build of an app against SWT 3.8.2 that also exhibits this. The knob was properly aligned on other macOS versions.

I could not reproduce the same issue in Cocoa natively via Xcode's interface builder. There, the knob seems to be properly aligned, even when the vertical bounds are large.

macOS version: 11.4 (20F71)