<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>Today I read trough the <a href="https://github.com/Cuis-Smalltalk/Learning-Cuis/blob/master/LayoutTour.md">Layout Tour</a> 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. (<a href="https://youtu.be/ibP_qYYi6eU?t=580">How to compose morphs in layouts in Cuis Smalltalk</a>) 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?<br></div><div><br></div><div><div>The redrawNeeded message is not enough. The LayoutSpecEditPanel from the Layout Tour uses the layoutSubmorphs message alongside redrawNeeded in the updateMasterFromCopy method.<br></div></div><blockquote type="cite"><div><div><span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">myLayoutMorph layoutSubmorphs; redrawNeeded</span><br></div></div></blockquote><div><br></div><div>What is the difference between the two method?<br></div><div><br></div><div>Regards,<br></div><div>Szabolcs<br></div></body></html>