Page 1 of 1

Reducing rectangle size according to typings

Posted: Thu Nov 19, 2020 12:21 pm
by matteo.mannai
Hello everyone,

I was wondering if there is a way to reduce the rectangle size (e.g. for info popups) according to the number of letters on the popup.

Thank you in advance,

Matteo

Re: Reducing rectangle size according to typings

Posted: Mon Nov 23, 2020 11:24 pm
by Hopki
Hi Matteo,
Under the text box properties set Auto Size.
Then you may want to add padding, also found under the text box properties.
Regards,

Re: Reducing rectangle size according to typings

Posted: Thu Nov 26, 2020 12:44 pm
by matteo.mannai
Thank you so much for your reply!!

Re: Reducing rectangle size according to typings

Posted: Thu Nov 26, 2020 2:29 pm
by matteo.mannai
My goal is to make the background rectangle smaller if say the typings are not a lot, but I don't want the rectangle to get bigger than the container if it overcomes its size. So far I tried to use autosize getting rid of the background rectangle but the outcome is not what I was hoping for.

I don't have anything in mind to get a logic under the rectangle that goes "if $(hd) is TEXTBOX SIZE MEASURES then change RECTANGLE SIZE". Any hint?

Re: Reducing rectangle size according to typings

Posted: Thu Nov 26, 2020 2:42 pm
by Hopki
HI,
I can not say I fully understand, but let me try.
You want a text box to get larger if more text is added, but when it gets to a certain size it has to stop resizing and then use say a scroll bar?

A single text box can not do this, but you may be able to swop out text boxes depending tag, or any other trigger, as an example Hotspot title = xxx use text box size with a scroll bar.
Regards,

Re: Reducing rectangle size according to typings

Posted: Thu Nov 26, 2020 5:24 pm
by matteo.mannai
You are right! I didn't think about that solution and it's what I was looking for. An easy but super effective solution. Thank you!!