<div dir="ltr"><div>This change is probably wrong since we need the TextMorph to be as wide as underlying text demands, <br></div><div>and then use horizontal scrolling. <br></div><div><br></div><div>What we need here is soft wrapping, which there is a preference for in PluggableTextMorph>>softLineWrap.<br></div><div>But that doesn't work.<br></div><div>I have also tested with different settings for autoFit and wrapFlag when initializing the text morph.<br></div><div>TextMorph wrapFlag and autoFit seems broken at the moment.</div><div><br></div><div>Best,</div><div>Karl<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 19, 2020 at 2:33 PM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A new version of Morphic was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Morphic-kfr.1619.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Morphic-kfr.1619.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Morphic-kfr.1619<br>
Author: kfr<br>
Time: 19 January 2020, 2:32:53.143611 pm<br>
UUID: c27f60fe-1f68-5d42-9593-cb364154f557<br>
Ancestors: Morphic-cmm.1618<br>
<br>
Change for layout policy of TextMorph embedded int PluggableTextMorph. A long text would over-shoot and not wrap at the right edge of a window. <br>
<br>
This test show the problem.<br>
<br>
((Workspace new contents: 'A quite long sentence that must wrap at the end of the window. It should wrap the line and not continue out the side of the window and not be readable.' )<br>
embeddedInMorphicWindowLabeled: 'A test window') setWindowColor: Color veryLightGray;<br>
openInWorld<br>
<br>
=============== Diff against Morphic-cmm.1618 ===============<br>
<br>
Item was changed:<br>
----- Method: PluggableTextMorph>>initializeTextMorph (in category 'initialization') -----<br>
initializeTextMorph<br>
<br>
textMorph := self textMorphClass new<br>
margins: (3@0 corner: 0@0);<br>
setEditView: self;<br>
+ hResizing: #spaceFill;<br>
- hResizing: #shrinkWrap;<br>
vResizing: #shrinkWrap;<br>
setProperty: #indicateKeyboardFocus toValue: #never;<br>
yourself.!<br>
<br>
<br>
</blockquote></div>