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

Stencil shape changes size on drop

Started by PeteMcF, December 21, 2023, 08:53:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PeteMcF

Hi,
Firstly, I'm probably more than a beginner but nowhere near a guru.
I'm building my own stencil by modifying an existing stencil (I want to add more data fields and associated graphics in the stencil shape to collect when dropping onto the diagram).
The stencil I am basing it off is quite complex.
The problem I'm having -  a stencil shape resizes on drop becoming much higher (I want these shapes to be consistent sizes, as they are in the original).
When I use the handles to manually resize, it loses the plot completely, flickering and growing exponentially like something from Jack and the Beanstalk! Using the opposite handle seems to work somewhat.

What I've tried...
1. Adding protection for the stencil shape - didn't work, it just meant I had to remove protection once dropped on the page!
2. Changing the size of the shape in shapesheet once on the diagram (when trying to create a new stencil shape. Some of the time it is immediately overwritten, other times it works.
3. Manually resizing (eventually, after fighting the beanstalk) and saving back to the stencil as a master shape.

Any ideas? What can I post for others to help?






Nikolay

You can post your diagram/stencil, of course.

What comes to mind (shooting in the dark, basically):
- the scale of the page is not the one the shape was designed for
- you have "match master on drop" flag set for the master
- the shapes were designed to work with some third-party add-on that provides the desired behavior

PeteMcF

Hi all,
Here is the stencil that does the weird resizing thing

wapperdude

definitely something weird going on.  That much Ican confirm.  Haven't had chance to look at this too much.  But, what little I saw didn't expose any height calc issues to match with the manual resizing.  The Level 3 shape is pretty complex.  Perhaps issue is with one of it's subshapes???

Visio 2019 Pro

wapperdude

Did a bit more digging.  NOTE:  I have no prior experience with or knowledge of the Level 3 shape.  The following is merely an observation and not a recommendation.

In the Level 3 shapesheet, in the User section, this entry defaults to TRUE:  User.msvLayoutIncludeSubshapes  It contains the following formula:  OR(TRUE,DEPENDSON(FALSE))I could not determine what how its value is set, nor what the setting affects.  But if you manually overwrite the formula with FALSE, the anomalous sizing behavior stops.

Change at your own risk.
Visio 2019 Pro

PeteMcF

Thanks, that worked a treat!
I would never have worked that out!

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: 240 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1094KB.
Tokens: post-login.
Cache hits: 13: 0.00155s for 26,740 bytes (show)
Cache misses: 3: (show)
Queries used: 17.

[Show Queries]