<div dir="ltr">In my app I display a TextEntryMorph whose morphExtent is set to a specific width.<div>The user enters text and clicks a button that adds the text to a list.</div><div>The code then clears the TextEntryMorph by setting its content to an empty string.</div><div>The TextEntryMorph contents: methods ends when these lines:</div><div><br></div><div><font face="monospace">    self fitContents.<br>     self redrawNeeded</font><br><div><br clear="all"><div>This discards the width I set initially.</div><div>I can fix this with the following:</div><div><br></div><div><font face="monospace">ext := todoEntry morphExtent.<br>   todoEntry contents: ''.</font></div><div><font face="monospace">todoEntry morphExtent: ext.</font><br></div><div><br></div><div>Does it seem desirable for a text input to change its width based on its contents?<br></div><div>I know that wouldn't normally happen in an HTML <font face="monospace">input</font> element seen in a web-based form.</div><div><br></div><div>I realize that I can add a new method to TextEntryMorph that does what contents: does and excludes those lines. I'm just surprised by the current default behavior.</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8000001907349px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div></div></div>