[Cuis-dev] LayoutMorph and offAxisEdgeWeight

Mark Volkmann r.mark.volkmann at gmail.com
Sun Aug 4 14:16:49 PDT 2024


I ran this code in a Workspace:

lm := LayoutMorph newColumn.
lm separation: 10.
lm layoutSpec offAxisEdgeWeight: 0.
lm addMorph: (LabelMorph new contents: 'short'; color: Color white).
lm addMorph: (LabelMorph new contents: 'very long'; color: Color white).
lm openInWorld.

The attached screenshot shows what I get and includes the LayoutSpec.
It looks like I successfully set the `offAxisEdgeWeight` to zero, so I
expected the two `LabelMorph` instances to be left-aligned inside the
`LayoutMorph`, but they are centered.
I must be misunderstanding how `offAxisEdgeWeight` works.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240804/525646c7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-08-04 at 4.14.00?PM.png
Type: image/png
Size: 71401 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240804/525646c7/attachment-0001.png>


More information about the Cuis-dev mailing list