3 Replies Latest reply on Jul 22, 2013 12:51 AM by Lachlan.McDonald

    Create textFrame along side Rectangle

    Lachlan.McDonald

      Hi all,

       

      I'm JavaScript, struggling with the creation of a textFrame along side a Rectangle. I can create the textFrame simply, set its content, and its auto-sizing, but I'm trying to position it's left-center anchor to the right-center anchor of an adjacent Rectangle. For the life of me, I can't seem to get it to work.

       

      I suspect I need to use the resolve() method on the Rectangle to get its location, and then use that when setting the textFrame's geometricBounds, but it keeps appearing far off the page.

       

      Any insights or examples of how this could be done would be welcomed greatly!

       

      Cheers,

       

      Lach