Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Create textFrame along side Rectangle

$
0
0

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


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>