<!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. 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> string: '*'<BR> attribute: (TextAnchor
new anchoredMorph: (TextFieldMorph new contents: 'data here';
yourself)).<BR>text := (TextStream on: Text new)<BR> nextPutAll: 'This is
the text before a morph: ';<BR> nextPutAll:
morphAsText;<BR> nextPutAll: ' here is some text following the
morph.';<BR> contents.<BR>(PluggableTextMorph on: nil text: nil accept:
nil)<BR> setText: text;<BR> openInWindow</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR> </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. 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> </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> </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> </DIV>
<DIV><SPAN class=736480616-29082001><FONT face=Arial color=#0000ff
size=2>Joerg</FONT></SPAN></DIV></SPAN></BODY></HTML>