Make rectangle element grow and shrink automatically

Q&A about the latest versions
Post Reply
David R
Posts: 3
Joined: Thu Dec 24, 2020 10:31 pm
Location: Hobart, Australia
Contact:

Tue Jan 12, 2021 11:53 am

Hello,

Currently, I have a custom 'control bar' at the bottom of the tour with several child buttons e.g. zoom in, zoom out, auto-rotation stop/start, hide/show graphics.
The other buttons in the control bar depend on whether mobile or desktop is being used to view the tour e.g. full screen button (desktop only), VR button (mobile only).
There is a rectangle element which serves as a background to the buttons and is a child of the 'control bar container'.

I would like to automatically resize the width of the background rectangle, depending on how many buttons are displaying.

Any ideas how to do this?

Here is a link to the tour showing the control bar: https://www.tourview.com.au/p2vrtest/au ... ralis.html

Thanks very much!
Regards,
David R
User avatar
Hopki
Gnome
Posts: 10991
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue Jan 12, 2021 12:41 pm

Hi David,
The next webinar will have a hint on how to do this.
It does not cover this specifically but you will understand what you will need to do to make this work.
The skin needs to know which buttons will be visible and then size the background.
viewtopic.php?f=6&t=15433
Regards,
Hopki
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/
Post Reply