Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: Visisthebest on June 16, 2020, 09:15:37 AM

Title: Vertical resizing of textbox subshape based on text size issue with data gfx pos
Post by: Visisthebest on June 16, 2020, 09:15:37 AM
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!
Title: Re: Vertical resizing of textbox subshape based on text size issue with data gfx pos
Post by: wapperdude on August 29, 2023, 01:10:55 AM
Did you ever get this resolved or is it still an issue?
Title: Re: Vertical resizing of textbox subshape based on text size issue with data gfx pos
Post by: Visisthebest on August 29, 2023, 01:39:20 PM
Thank you for checking Wapperdude this one is solved!
Title: Re: Vertical resizing of textbox subshape based on text size issue with data gfx pos
Post by: wapperdude on August 29, 2023, 01:53:41 PM
Optional...
Care to upload solution, there's been a reasonable amount of views?  Might be helpful!
Title: Re: Vertical resizing of textbox subshape based on text size issue with data gfx pos
Post by: Visisthebest on August 29, 2023, 03:27:26 PM
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)