<!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">
    On 8/10/2024 5:32 PM, Mark Volkmann via Cuis-dev wrote:
    <blockquote
cite="mid:CAFfRWnWHso_2gxV6z8YqMwpBtjT5RqfU3MMr8PvoRRS2XAB=3g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div dir="ltr">On Sat, Aug 10, 2024 at 12:22 PM <<a
            moz-do-not-send="true" href="mailto:ken.dickey@whidbey.com">ken.dickey@whidbey.com</a>>
          wrote:<br>
        </div>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin: 0px 0px 0px
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">On 2024-08-10 08:23, Mark Volkmann via
            Cuis-dev wrote:<br>
            <br>
            > I am calling openInWorld after creating my morph where
            all submorphs <br>
            > are added to it in its initialize method. Is there
            something I need to <br>
            > do to tell my morph to "pack" its submorphs?<br>
            <br>
            Note implementers of #layoutSubmorphs.  Morph is different
            than, say, <br>
            SystemWindow or LayoutMorph.  What does the code say?<br>
          </blockquote>
          <div><br>
          </div>
          <div>Let's take a very simple example:</div>
          <div><br>
          </div>
          <font face="monospace">window := SystemWindow new.<br>
            window addMorph: (LabelMorph new contents: 'Hello World').<br>
            window layoutSubmorphs.<br>
          </font>
          <div><font face="monospace">window openInWorld.</font></div>
          <div><br>
          </div>
          <div>The window will be much larger than what is required to
            hold the <font face="monospace">LabelMorph</font>.</div>
          <div>Sending <font face="monospace">#layoutSubmorphs</font>
            doesn't seem to affect the window size in this case.</div>
          <div>What can I do to tell the <font face="monospace">SystemWindow</font>
            that I want its extent to be the minimum required to display
            its submorphs.</div>
          <div>Side note: I have spent hours digging through the source
            code trying to figure it out on my own.</div>
        </div>
      </div>
    </blockquote>
    <br>
    Yes. And as you grow your Smalltalk-fu you'll become more and more
    effective at this. This is the real power of Smalltalk.<br>
    <br>
    <blockquote
cite="mid:CAFfRWnWHso_2gxV6z8YqMwpBtjT5RqfU3MMr8PvoRRS2XAB=3g@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span class="gmail_signature_prefix">-- </span><br>
        <div dir="ltr" class="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.8px;"><font
                            face="arial, helvetica, sans-serif">Object
                            Computing, Inc.</font></span></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Cheers,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
  </body>
</html>