<div dir="ltr">I looked at the commit ...<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace"> aMorph == self ifTrue: [^ self error: 'cannot be own submorph'].</font></blockquote><div><br></div><div>but this will not save me from a more insidious mistake such as ...</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">m1 = Morph new.<br>m2 = Morph new.<br>m3 = Morph new.</font></blockquote><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">m1 addSubmorph: m2.<br></font><font face="monospace">m2 addSubmorph: m3.<br></font><font face="monospace">m3 addSubmorph: m1.</font></blockquote></div><div><div><br></div></div><div>Anyway, I didn't want to complicate your life/lives. Thanks for this. It will help reduce some mistakes.</div><div><br></div><div>A.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 13, 2023 at 4:12 PM Juan Vuletich <<a href="mailto:juan@cuis.st">juan@cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div bgcolor="#ffffff">
On 3/13/2023 1:36 PM, Alexandre Rousseau via Cuis-dev wrote:
<blockquote type="cite">
<div dir="ltr">Defining a class as subclass of LayoutMorph and
initializing it thus:
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">initialize<br>
</font><font face="monospace"> super initialize.<br>
</font><font face="monospace"> self beColumn.</font></blockquote>
<div><br>
</div>
<div>morphs added to it still appear next to each other,
horizontally, as if #beColumn was ignored.</div>
<div><br>
</div>
<div>Is this expected behaviour for a subclass of LayoutMorph?</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
You may want to play with LayoutMorph class >> example1, that
shows a possible way to build a column of rows. There are several
other examples there. #example101VG is particulary interesting.<br>
<br>
After opening them, play with the halo handles, to see how they
react.<br>
<br>
HTH,<br>
<pre cols="72">--
Juan Vuletich
<a href="http://cuis.st" target="_blank">cuis.st</a>
<a href="http://github.com/jvuletich" target="_blank">github.com/jvuletich</a>
<a href="http://researchgate.net/profile/Juan-Vuletich" target="_blank">researchgate.net/profile/Juan-Vuletich</a>
<a href="http://independent.academia.edu/JuanVuletich" target="_blank">independent.academia.edu/JuanVuletich</a>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a>
<a href="http://twitter.com/JuanVuletich" target="_blank">twitter.com/JuanVuletich</a></pre>
</div>
</blockquote></div>