Keeping Y position constant while shape height changes dynamically

M

Meredith Nobe

I am using the formula "=GUARD(TEXTHEIGHT(TheText,Width))" for my
shape's Height, meaning that its height automatically adjusts to the
text that's in it.

My problem is that when the height resizes, it seems to resize the
entire shape and re-center it based on the original vertical center of
the image. Because my shape was originally aligned vertically with a
guide, the resized shape isn't aligned to the guide anymore. I save
the trouble of expanding the height of my shape, but instead I'm given
the trouble of having to re-align it vertically!

Is there any way of forcing the Y position of my shape to stay the
same when the shape is automatically resized? I don't want to simply
lock the Y position entirely, as I still want the user to be able to
move the shape around manually.

I'd appreciate any suggestions!

Meredith
 
P

Paul Herber

I am using the formula "=GUARD(TEXTHEIGHT(TheText,Width))" for my
shape's Height, meaning that its height automatically adjusts to the
text that's in it.

My problem is that when the height resizes, it seems to resize the
entire shape and re-center it based on the original vertical center of
the image. Because my shape was originally aligned vertically with a
guide, the resized shape isn't aligned to the guide anymore. I save
the trouble of expanding the height of my shape, but instead I'm given
the trouble of having to re-align it vertically!

Is there any way of forcing the Y position of my shape to stay the
same when the shape is automatically resized? I don't want to simply
lock the Y position entirely, as I still want the user to be able to
move the shape around manually.

I'd appreciate any suggestions!

Meredith

In the shape's shapesheet, set the cells LocPinX and LocPinY to 0 and
height*1 respectively.
 
M

Meredith Nobe

In the shape's shapesheet, set the cells LocPinX and LocPinY to 0 and
height*1 respectively.

Brilliant, works perfectly. I had tried playing around with LocPinY
(setting it to 0) but assumed abandoned that property entirely when my
experiment didn't work.

Thanks very much, Paul!

Meredith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top