<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Stef --<div><br></div><div>Yes, single-character text morphs have always been an issue.</div><div><br></div><div>In 5.3, that text morph was also wider than it needs to be:</div><div><br></div><div><img id="06993e80-0207-41ae-b2c6-7aa42265eb4a" src="cid:1bd49166-de51-4ed3-942e-a369195cc31d" width="auto"></img><br></div><div><br></div><div>The overall support for "minimal extent" in Morphic is still brittle. It can yield unexpected errors in various edge cases, including things related to the scale factor and non-Western fonts.</div><div><br></div><div>I agree that the "*2" magic constant is bad. Yet, I am afraid that moving it from #minCompositionWidth to #minWidth makes things worse in terms of readability. Also, #<span style="font-size: 10pt">minCompositionWidth and #</span><span style="font-size: 10pt">minWidth should do very similar things, except for the "outer" properties such as margin and border. Moving that constant would break that contract.</span></div><div><br></div><div>I would not make your proposed change in 6.0. Yet, we can try to work with that in 6.1alpha.</div><div><br></div><div>Can you please give more context on where this turns out to be a problem?</div><div><br></div><div>(Apologies that I do not have the time right now to go into the problem. It is much more complicated than it looks here. There are bugs in CompositionScanner when the rectangle is too narrow.)</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 08.08.2022 22:41:32 schrieb Stéphane Rollandin <lecteur@zogotounga.net>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hello,<br><br>In 6.0<br><br>       (TextMorph new contents: 'B';<br>         backgroundColor: Color green)<br>                 openInHand<br><br>yields a Morph that is wider than needed by an extra character<br><br>changing #minCompositionWidth in TextMorph by removing the * 2 fixes <br>that problem, but introduces another one (bad layout of modal window <br>titles) that can itself be fixed by reintroducing the same * 2 in <br>#minWidth as follow:<br><br>minWidth<br><br>  | result |<br>    result := self minCompositionWidth * 2 + (self borderWidth*2).<br>        margins ifNil: [^ result].<br>    <br>      ^ margins isRectangle<br>         ifTrue: [result + margins left + margins right]<br>               ifFalse: [margins isPoint<br>                     ifTrue: [result + margins x + margins x]<br>                      ifFalse: [result + (2*margins)]]<br><br>Is that correct?<br><br><br>Stef<br><br></div></blockquote></div>