[Cuis-dev] How to constraint a layout morph

Hilaire Fernandes hfern at free.fr
Wed Oct 1 07:53:46 PDT 2025


Hi,

I need to constraint a layout morph to a given extent (given there is 
enough space on the extent I pick up)

This code does not work:

initialize
     super initialize.
     self beColumn.
     date := LabelMorph contents: (model date printFormat: #(1 2 3 $/ 1 
1 1))  fontSize: 12 emphasis: 1.
     description := TextParagraphMorph contents: model description.
     self addMorph: date;
         addMorph: description;
*        morphExtent: self class extent*


The layout morph shows up with whatever extent it like.


-- 
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251001/78c4e767/attachment.htm>


More information about the Cuis-dev mailing list