Project: SWT
Bug 278489 Text field fails to move caret if layout is updated after setting focus
Reported: 2009-05-29 18:34:39 | Status: resolved fixed

To reproduce (in code): # create a composite with some things in it # later add a Text(SWT.SEARCH|SWT.CANCEL|SWT.BORDER) # call text.setFocus() # call composite.layout(true) # observe that the caret is in the wrong position reversing the order of text.setFocus() and composite.layout(true) causes the caret to be displayed in the correct location

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java