[Cuis-dev] Question about LayoutMorph and overlapping fullBoundsInOwner
Nicolás Papagna Maldonado
nicolas.papagna at gmail.com
Thu Apr 3 06:13:11 PDT 2025
Hi Folks!
In the following example I create a layout and add two 100x100 morphs.
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.
layout := LayoutMorph newColumn
addMorph: (BoxMorph new morphExtent: 100 at 100);
addMorph: (BoxMorph new morphExtent: 100 at 100).
layout layoutSubmorphs.
layout submorphs second fullBoundsInOwner. 0 at 0 corner: 100 at 100
layout submorphs first fullBoundsInOwner. 0 at 100 corner: 100 at 200
I found this while trying to find which morph was at the 0 at 100 local
position inside the layout.
Does this mean that fullBoundsInOwnerdoes not include the end?
Cheers,
Nico PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250403/8ad7748e/attachment.htm>
More information about the Cuis-dev
mailing list