[Cuis-dev] layoutSubmorphs vs. redrawNeeded
Szabolcs Komáromi
cuis at mnqpr.com
Thu Aug 3 11:55:58 PDT 2023
Hi,
Today I read trough the Layout Tour <https://github.com/Cuis-Smalltalk/Learning-Cuis/blob/master/LayoutTour.md> from the Learning-Cuis repository. (Meanwhile I created new screenshots for the tutorial and Ken already merged my pull request.) And also watched Nicolas's video tutorial on Youtube. (How to compose morphs in layouts in Cuis Smalltalk <https://youtu.be/ibP_qYYi6eU?t=580>) My experience and you can see in the video also that sometimes the layout morph doesn't align its submorphs if proportionalHeight:/proportionalWidth:/offAxisEdgeWeight: are changed. Nicola uses the halo's resize button to nudge the layout to do its job. But what is the right message to do this programmatically?
The redrawNeeded message is not enough. The LayoutSpecEditPanel from the Layout Tour uses the layoutSubmorphs message alongside redrawNeeded in the updateMasterFromCopy method.
> myLayoutMorph layoutSubmorphs; redrawNeeded
What is the difference between the two method?
Regards,
Szabolcs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230803/8c7c197d/attachment-0001.htm>
More information about the Cuis-dev
mailing list