text box width and wrap

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
I have this text box with a max-width, and word wrap and auto-size on. now it seems the wrap is much smaller than the max-width size. could be i'm adding the wrong css code..? how would this be done correct;y? (so to make the text wrap to a max width, then when it's more, text wrap, and expand new lines vertically)
best,
david
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi david,
Can you post an example? a simple project that shows this issue.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
i'll try make a skin, but maybe i can explain more easily: it seems the issue is the "auto size" doesn't work anymore when size is set through a logic block.

if i have a normal text box with anchor at the bottom, word wrap and auto size enabled, it seems to wrap properly, not use the height until the text indeed requires that space. but when a height is entered in a logic block, it doesn't 'expand' anymore.

set through normal position / size
20220518_115414.png
20220518_115414.png (53.17 KiB) Viewed 3698 times
same values, but set through logic block
20220518_115542.png
20220518_115542.png (109.9 KiB) Viewed 3698 times


hope that makes it more clear.
Best,
David
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Still a bit confusing :)

What version are you using V6 or Beta 7?

What's the starting size?

How are you triggering the Logic Block action?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,

It's the latest beta. the setting is as follows:
20220518_213524.png
20220518_213524.png (26.07 KiB) Viewed 3683 times
i now change the size with a node variable. but then auto size and wrap isn't functioning anymore.

david
User avatar
k.ary.n
Gnome
Posts: 615
Joined: Wed Aug 15, 2007 1:02 pm

I think what you're looking for is using CSS max height. Check out this webinar and go to about 18 minutes in.
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
yes 'max-' works for height, but for width it seems to always take the value of the position -> size box.
i can't get that to work, so now my workaround is to add a variable setting the width.
David
Post Reply