Project: SWT
Bug 272412 Checkboxes with images have incorrect image alignment
Reported: 2009-04-15 18:51:32 | Status: resolved fixed

Images are aligned too high. See attached screenshots comparing Carbon with Cocoa. on eclipse-SDK-I20090414-0800-macosx-cocoa-x86_64 Checkboxes with images are created as follows: bc.. filterEntitiesCheckbox = new Button(nodeSelectionComposite,SWT.CHECK|SWT.FLAT); filterEntitiesCheckbox.setImage(image1); filterEntitiesCheckbox.setToolTipText("Hide entities"); filterSimpleTypesCheckbox = new Button(nodeSelectionComposite,SWT.CHECK|SWT.FLAT); filterSimpleTypesCheckbox.setImage(image2); filterSimpleTypesCheckbox.setToolTipText("Hide simple types");

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSButton.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java