<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">|m am|<br>
      m := AlignmentMorph newRow color: Color white; extent: 200@100.<br>
      am := AlignmentMorph newRow<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; hResizing: #spaceFill;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vResizing: #shrinkWrap;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; listDirection: #leftToRight;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; listCentering: #bottomRight;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; color: Color transparent.<br>
      am addMorph: (Morph new color: Color red; extent: 37@51).<br>
      am addMorph: (Morph new color: Color blue; extent: 43@51).<br>
      m addMorph: am.<br>
      m openInWorld<br>
      <br>
      <br>
      Cheers,<br>
      Bob<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 7/31/13 9:40 PM, tim Rowledge wrote:<br>
    </div>
    <blockquote
      cite="mid:3F437A68-6635-436A-BA4E-E93F61F22DF3@rowledge.org"
      type="cite">
      <pre wrap="">
On 31-07-2013, at 6:25 PM, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net">&lt;arning315@comcast.net&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
am right: m right - 10

sets the right edge of am before am has adjusted its size base on its submorphs. Add the line marked above. Normally you would let the alignment-style properties ripple down and up the tree and all would be cool. Your insertion of manual positioning needed the extra step.
</pre>
      </blockquote>
      <pre wrap="">
OK, that even makes sort of sense. Thank you for saving my hairline!

Now, as my supplemental question, how *should* it be done to avoid the manual fudge? Let's say I want several buttons stacked up against the left edge of my main morph, then a group of buttons that will keep their left edge aligned with another morph below this row, then another group of buttons stacked with their collective right edge near the right edge of my main morph? I'm sort of seeing some possible ways but to be honest this layout stuff is pretty opaque unless you have done a fair bit of it. 


tim
--
tim Rowledge; <a class="moz-txt-link-abbreviated" href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a class="moz-txt-link-freetext" href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a>
Strange OpCodes: BZR: Branch if piZza Ready




</pre>
    </blockquote>
    <br>
  </body>
</html>