Page 1 of 1

How can I know the viewport in used ?

Posted: Wed Oct 18, 2023 11:52 am
by dePassage66
Hi to all,

After some search, I didn't find the answer to my question.

Here is the problem:
I have a text field which is to big on a desktop but too small on a mobile.
It is set with %

Question:
How can I retrieve the size of the viewport to be abble to say to my text field to adapt itself ?

Thanks in advance if you have an idea about that,
Regards,

Re: How can I know the viewport in used ?

Posted: Wed Oct 18, 2023 3:53 pm
by dePassage66
Hi to all,

I answer to myself as I found the answer on this video from Hopki:
https://www.youtube.com/watch?v=D_2_u7WaVSY

So, I was able to configure my text fields according to the reader and it works very, very well!

Image

regards,

Re: How can I know the viewport in used ?

Posted: Wed Oct 18, 2023 3:55 pm
by dePassage66
I would have liked to introduce an else condition in this filter but I haven't found how to do it...

Re: How can I know the viewport in used ?

Posted: Thu Oct 19, 2023 4:24 am
by Tony
Hi,

What would be your "else" condition?

Tony

Re: How can I know the viewport in used ?

Posted: Thu Oct 19, 2023 10:25 am
by dePassage66
Hi Tony,

It was to test the height of the player but finally, I found that I can use the keywords AND and OR after some tries in this ligical block :wink:

Have a nice day,
Regards,

Re: How can I know the viewport in used ?

Posted: Fri Oct 20, 2023 7:18 am
by Tony
Hi,

Glad you managed to work it out. Pano2VR is very powerful and using logic blocks can create complex interactions between elements within your tour.

Check out some of my tutorials at https://tonyredhead.com/pano2vr

Cheers,

Tony

Re: How can I know the viewport in used ?

Posted: Fri Oct 20, 2023 9:50 am
by dePassage66
Hi Tony,

I knew your web site but not this part of it !

Very interesting, thanks a lot.

Regards,