<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [ANN] SWT 0.6 released</TITLE>

<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff size=2>I've 
been playing with embedding morphs in a TextMorph. &nbsp;No matter how I embed 
the morph, by pasting or programmatically I experience some strange behavior 
when wrapping. To see this evaluate the following: </FONT></SPAN></DIV><SPAN 
class=736480616-29082001>
<DIV><BR><FONT face=Arial color=#0000ff size=2>morphAsText := Text 
<BR>&nbsp;&nbsp;&nbsp;string: '*'<BR>&nbsp;&nbsp;&nbsp;attribute: (TextAnchor 
new anchoredMorph: (TextFieldMorph new contents: 'data here'; 
yourself)).<BR>text := (TextStream on: Text new)<BR>&nbsp;nextPutAll: 'This is 
the text before a morph: ';<BR>&nbsp;nextPutAll: 
morphAsText;<BR>&nbsp;nextPutAll: ' here is some text following the 
morph.';<BR>&nbsp;contents.<BR>(PluggableTextMorph on: nil text: nil accept: 
nil)<BR>&nbsp;setText: text;<BR>&nbsp;openInWindow</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR>&nbsp;</DIV></FONT>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff size=2>Resize 
so everything is on one line then slowly narrow the window until the embedded 
TextFieldMorph just fits on the first line. So far all should be okay. Narrow 
the window so the embedded morph just doesn't fit on the first line.&nbsp;Notice 
how TextFieldMorph wraps but then indents itself by its own 
width!</FONT></SPAN></DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff size=2>To get 
a hint of what may be going on type a character just prior to the TextFieldMorph 
making sure there is no space between them and repeat the resizing exercise. 
Seems if the $* which carries the TextAnchor attributes is at a line wrap point 
the layout mechanisms are getting confused.</FONT></SPAN></DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff size=2>My 
image is #4282 with the HTML Table changes set 0.6 
installed.</FONT></SPAN></DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff 
size=2>Joerg</FONT></SPAN></DIV></SPAN></BODY></HTML>