We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 14.4 Sonoma (works OK on macOS 13 Ventura) Latest SWT as of today's date
A Scale control is invisible if style is SWT.VERTICAL and is set alongside another control.
Scale
SWT.VERTICAL
showScaleFirst
import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Scale; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; public class ScaleControlNotShowingMacOS14 { public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new GridLayout(2, false)); shell.setText("SWT Test"); shell.setSize(450, 300); // Change this to true to show the Scale control first, // or false to show it after the Text control boolean showScaleFirst = true; if(showScaleFirst) { new Scale(shell, SWT.VERTICAL); } Text text = new Text(shell, SWT.MULTI); text.setLayoutData(new GridData(GridData.FILL_BOTH)); if(!showScaleFirst) { new Scale(shell, SWT.VERTICAL); } shell.open(); while(!shell.isDisposed()) { if(!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
Scale control on the left (invisible):
Scale control on the right (visible):
So far, I have no idea why this should be the case. If the Text control is replaced with a Composite or Label the Scale control renders correctly.
Text
Composite
Label
I've tried different experiments but no luck so far. I've a feeling it relates to some internal SDK change that Apple made in macOS 14.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
macOS 14.4 Sonoma (works OK on macOS 13 Ventura)
Latest SWT as of today's date
A
Scale
control is invisible if style isSWT.VERTICAL
and is set alongside another control.showScaleFirst
variable to false and run it again to see how the control should look when rendered correctly on the right.Scale
control on the left (invisible):Scale
control on the right (visible):So far, I have no idea why this should be the case. If the
Text
control is replaced with aComposite
orLabel
theScale
control renders correctly.I've tried different experiments but no luck so far. I've a feeling it relates to some internal SDK change that Apple made in macOS 14.
The text was updated successfully, but these errors were encountered: