[Cuis-dev] Layout Problem

ken.dickey at whidbey.com ken.dickey at whidbey.com
Thu May 21 16:02:40 PDT 2020


On 2020-05-21 18:24, Juan Vuletich via Cuis-dev wrote:

> I just went over this, implemented it also for vertical layout, and
> pushed to GitHub.

Hi Juan,

I loaded the above, then 'Morphic-Misc1' and other packages and found a 
bunch of odd cases.

I have updated https://github.com/KenDickey/LayoutProposal with some 
code which seems to work and a description of basic expectation and 
strategy of Layouts as I understand it.

https://github.com/KenDickey/LayoutProposal/blob/master/LayoutUsage.md

I am sure the code could be cleaner and use some better refactoring, but 
the first thing is getting the behavior as expected.

Once again, apologies for cluttering your elegant Layout code with 
minimumExtent.  I had no idea that the simple idea would be so complex 
to address.

All, please test and improve.

Most of the complexity is in methods LayoutMorph>>widthsFor:within: and 
heightsFor:withIn:

Simplifying/refactoring hese methods could be a good project.

Thanks again to all!  And perhaps see you on Saturday (below) when you 
can complain directly!  ;^)
-KenD


2020-05-23 14:00:00 UTC - 2020-05-23 16:00:00 UTC (Saturday)
   https://meet.metalab.at/CuisMeetup
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 4146-CuisCore-LayoutProposal5-2020May21-13h59m-KenD.001.cs.st
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200521/bed77700/attachment-0001.ksh>


More information about the Cuis-dev mailing list