<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Hilaire,<br>
    <br>
    Please post enough detail (or a pre-saved image) so I can easily
    reproduce the problem and debug it.<br>
    <br>
    Thanks,<br>
    On 3/25/2022 8:12 AM, Hilaire Fernandes via Cuis-dev wrote:
    <blockquote cite="mid:820417f5-5268-7d16-63c7-7478ee76f4a0@drgeo.eu"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font size="4">Hi!<br>
        </font></p>
      <p><font size="4">I have this problem that drives me nuts. I have
          this text object in DrGeo, its view is a TextComposition.
          Whenever I edit it with two lines, the second line and the
          following are not rendered, The view extent is correctly
          computed though.<br>
        </font></p>
      <img moz-do-not-send="false"
        src="cid:part1.05040000.01070304@zoho.com" alt="" height="229"
        width="388">
      <p><font size="4">I fail to see anything wrong. The text is a
          String, the carriage return in the text is byte decimal value
          10.</font></p>
      <p><font size="4">The view is updated as follow:</font></p>
      <pre><font size="4">DrGTextMorph>>contents: aStringOrText
    textComposition textComposed ~= aStringOrText ifTrue: [
        textComposition        
            setModel: (TextModel withText: aStringOrText);
            composeAll.
        extent _ textComposition usedExtent + 8]
</font></pre>
      <p><font size="4">and drawing:<br>
        </font></p>
      <pre><font size="4">DrGTextMorph>>drawOn: aCanvas
    | r |
    self contents: mathItem text.
    r _ self labelPosition extent: extent.
    self drawFrame: r on: aCanvas.
    aCanvas
        textComposition: textComposition
        bounds: (r insetBy: 4)
        color: color
        selectionColor: `Color red`.
</font></pre>
      <p>Any ideas?</p>
      <p>Thanks</p>
      <p>Hilaire<br>
      </p>
      <pre class="moz-signature" cols="72">-- 
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
<a class="moz-txt-link-freetext" href="https://independent.academia.edu/JuanVuletich">https://independent.academia.edu/JuanVuletich</a>
<a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Juan-Vuletich">https://www.researchgate.net/profile/Juan-Vuletich</a>
<a class="moz-txt-link-freetext" href="https://patents.justia.com/inventor/juan-manuel-vuletich">https://patents.justia.com/inventor/juan-manuel-vuletich</a>
<a class="moz-txt-link-freetext" href="https://twitter.com/JuanVuletich">https://twitter.com/JuanVuletich</a></pre>
  </body>
</html>