<div dir="ltr"><div dir="ltr">On Sat, Aug 10, 2024 at 12:22 PM <<a 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-width:1px;border-left-style:solid;border-left-color: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><br></div><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>