Community
Participate
Working Groups
Build Identifier: 20100617-1415 This a platform window system specific bug. It does not happen on Windows or Cocoa. The problem is on line 402 of TextLayout class for carbon in the computeRuns():void method. There is a call to "OS.ATSUGetSoftLineBreaks(layout, 0, OS.kATSUToTextEnd, count, breaks, null);" which returns a break on character index 1 if the first word wraps without spaces. Reproducible: Always Steps to Reproduce: 1. Create a StyledText with SWT.WRAP. 2. Type in a very long word that wraps without spaces. 3. As soon as you type the character that triggers the wrap, you will notice that the word is drawn one line below where it should be.
This is Carbon, so it may not be addressed as we're trying to phase out 3.7. Over to Silenio.
Closing report, platform is discontinued. Works on cocoa.