-
Auto resizable Textbox with object connected to corner
Hi there,
maybe somebody can help me with a problem. I have a shape layer and a text layer.
I used “sourceRectAtTime” to make the text box automatically the same size as my text.
That works perfectly. But I also want a little circle to always stay in the right upper corner of the box, no matter which size the box has.
So I added a null layer. The null layers horizontal position is pick whiped to the size of the shape layer. And the circle is parented to the null.
This is almost working but with a little problem. When I change the text, the text box changes its size and the circle is following the corner of the box. BUT with an offset. It seems like the circle isn’t following enough.
Can someone help me? I’ve tried a lot for several hours now but I’m kind of stuck.