Project: SWT
Bug 202359 Label with SWT.WRAP does not work on WPF
Reported: 2007-09-05 22:39:04 | Status: resolved fixed

I am on Eclipse 3.4M1. The test case below works as expected on the regular 32-bit Windows build. Test case: 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.Label; import org.eclipse.swt.widgets.Shell; public class JFaceMessageDialogBug { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(); shell.setLayout(new GridLayout(1, true)); Label label = new Label(shell, SWT.WRAP); label.setText("This is a message that goes over the shell forever and ever and ever"); label.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); shell.setSize(300, 200); shell.open(); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/wpf/org/eclipse/swt/internal/wpf/OS.java bundles/org.eclipse.swt/Eclipse SWT/wpf/org/eclipse/swt/widgets/Label.java