Bug 574328 - macOS 11: SWT radio button has text and knob misaligned
Summary: macOS 11: SWT radio button has text and knob misaligned
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.20   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-19 10:04 EDT by Alexei Svitkine CLA
Modified: 2021-06-19 10:04 EDT (History)
0 users

See Also:


Attachments
Screenshot of alignment issue (1.57 MB, image/png)
2021-06-19 10:04 EDT, Alexei Svitkine CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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)