News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

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

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 207 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1055KB.
Tokens: post-login.
Cache hits: 13: 0.00256s for 26,742 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]