<div dir="ltr">I'm thinking that "one ends where the next one starts" does not mean they overlap.<div>I guess you could say they share a border.</div><div>I did the following to make it more clear:</div><div><br></div><div>box1 := BorderedBoxMorph new morphExtent: 100@100; borderColor: Color yellow; borderWidth: 2.<br>box2 := BorderedBoxMorph new morphExtent: 100@100; borderColor: Color red; borderWidth: 2.<br>layout := LayoutMorph newColumn addMorph: box1; addMorph: box2.<br>layout openInWorld.<br></div><div><br></div><div>Note how the bottom border of the top box and top border of the bottom box are both visible.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Apr 3, 2025 at 8:14 AM Nicolás Papagna Maldonado via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><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"><div dir="ltr"><div dir="ltr">Hi Folks!<div><font face="monospace"><br></font></div></div><div dir="ltr">In the following example I create a layout and add two 100x100 morphs.</div><div dir="ltr"><br></div><div dir="ltr">When I check their bounds in the owner, they seem to "overlap": notice the y=100 coordinate is shared by both morphs (one ends where the next one starts), even though they are not rendered overlapped.</div><div dir="ltr"><br></div><div dir="ltr"><font face="monospace">layout := LayoutMorph newColumn<br> addMorph: (BoxMorph new morphExtent: 100@100);<br> addMorph: (BoxMorph new morphExtent: 100@100).<br><br>layout layoutSubmorphs.<br><br>layout submorphs second fullBoundsInOwner. <span style="background-color:rgb(255,255,0)">0@0 corner: 100@100</span><br>layout submorphs first fullBoundsInOwner. <span style="background-color:rgb(255,255,0)">0@100 corner: 100@200</span></font></div><div dir="ltr"><font face="monospace"><span style="background-color:rgb(255,255,0)"><br></span></font></div>I found this while trying to find which morph was at the 0@100 local position inside the layout.<div><br></div><div>Does this mean that <span style="font-family:monospace">fullBoundsInOwner</span>does not include the end<span style="font-family:monospace">?</span></div><div><span style="font-family:monospace"><br></span></div>Cheers,<br>Nico PM</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><div><br clear="all"></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>