Vertical resizing of textbox subshape based on text size issue with data gfx pos

Started by Visisthebest, June 16, 2020, 09:15:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

With a shape that has a text box subshape that resizes its height (downwards), I am running in to the issue that if I place a data graphic below the group shape, it is covered by the text box subshape in the group when the text box is significantly longer than the 30mm minimum set.

Is this because I also need to update the bounding box dimensions when the text box subshape is resized by the user entering more text in to the text box subshape? Still getting my head around how the bounding box relates and is or is not updated by changes to the shape.

Formula for resizing the subshape used (I think I found this in a post or on the website of Paul Herber):
GUARD(MAX(TEXTHEIGHT(TheText,Width),30 mm))

Those data graphics are a pretty cool feature I must say! Thank you for the help and advice!
Visio 2021 Professional

wapperdude

Visio 2019 Pro

Visisthebest

Visio 2021 Professional

wapperdude

Optional...
Care to upload solution, there's been a reasonable amount of views?  Might be helpful!
Visio 2019 Pro

Visisthebest

I made an error with my Visio shape. While the subshapes were positioned correctly, the group shape's height did not cover them all. I used a group shape without text or geometry, so you do not always recognize some subshapes extend beyond its actual boundaries. Visio allows this (fortunately), but it can cause issues with data graphics. By adjusting the group shape's height to cover all subshapes, the data graphics positioned correctly. (in this case I wanted the data graphics below the shape)
Visio 2021 Professional