<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="4">Hi, </font></p>
    <p><font size="4">I need to constraint a layout morph to a given
        extent (given there is enough space on the extent I pick up)</font></p>
    <p><font size="4">This code does not work:</font></p>
    <p><font size="4">initialize<br>
            super initialize.<br>
            self beColumn.<br>
            date := LabelMorph contents: (model date printFormat: #(1 2
        3 $/ 1 1 1))  fontSize: 12 emphasis: 1.<br>
            description := TextParagraphMorph contents: model
        description.<br>
            self addMorph: date;<br>
                addMorph: description;<br>
        <b>        morphExtent: self class extent</b></font></p>
    <p><font size="4"><br>
      </font></p>
    <p><font size="4">The layout morph shows up with whatever extent it
        like.</font></p>
    <p><font size="4"><br>
      </font></p>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo">http://mamot.fr/@drgeo</a></pre>
  </body>
</html>