[Cuis-dev] Column type layout morph anomaly
Szabolcs Komáromi
cuis at mnqpr.com
Sat Aug 5 08:31:13 PDT 2023
Hi,
Shouldn't this code produce a morph with a green and red box inside the gray box at the gray box's top edge? And the red and green box should have a height 10% of the gray box's height? Every other direction works that way.
Or I don't understand something fundamental about laying out morphs. The furthermost Workspace's morph looks wrong to me.
> la1 := LayoutMorph newColumn .
> la2 := BoxedMorph new layoutSpec: (LayoutSpec proportionalHeight: 0.1) :: color: Color green.
> la3 := BoxedMorph new layoutSpec: (LayoutSpec proportionalHeight: 0.1) :: color: Color red.
> la1 addMorph: la2.
> la1 addMorph: la3.
> la1 openInWorld.
Regards,
Szabolcs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230805/960d18ec/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 169771 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230805/960d18ec/attachment-0001.png>
More information about the Cuis-dev
mailing list