Author Topic: Vertical resizing of textbox subshape based on text size issue with data gfx pos  (Read 4040 times)

0 Members and 1 Guest are viewing this topic.

Visisthebest

  • Hero Member
  • *****
  • Posts: 863
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4837
  • Ideas Visio-lized into solutions
Did you ever get this resolved or is it still an issue?
Visio 2019 Pro

Visisthebest

  • Hero Member
  • *****
  • Posts: 863
Thank you for checking Wapperdude this one is solved!
Visio 2021 Professional

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4837
  • Ideas Visio-lized into solutions
Optional...
Care to upload solution, there's been a reasonable amount of views?  Might be helpful!
Visio 2019 Pro

Visisthebest

  • Hero Member
  • *****
  • Posts: 863
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