Page 1 of 1

Image inside scroll area

Posted: Tue Sep 15, 2020 6:50 pm
by Ago75
Hello,
I would like to put an image inside a scroll area.
I would like the image (aspect 1:2) fo fit horizontally (contstraining proportions) inside the scroll area so that i just have a scrollbar that will pan the image along Y axis.
I'm not able to do that with standard options.

Can anyone help me? It should be easy to do as Pano2VR interface editor seems very powerful!

Thank you in advance.

Maurizio

Re: Image inside scroll area

Posted: Wed Sep 16, 2020 8:15 am
by Hopki
Hi Maurizio,
In the scroll area element turn off the horizontal scroller.
Regards,

Re: Image inside scroll area

Posted: Wed Sep 16, 2020 10:31 am
by Ago75
Hi Hopki,
thank you for the reply,
I've already turned off the horizontal scrollbar, and customized the remaining vertical one.
However I'm unable to make the image (which is inside the scrollarea) to fit the scrollarea horizontally.
I've set scrollarea width and height to 80% in order to keep a little margin around the area and it works fine.
I've added the image inside the scroll area, but i'm not able to make it fit horizontally (the image has to scale up or down to fill the entire scrollarea) and keep the correct aspect ratio.
No matter what method I use for scaling (% or px).
I can make the image fill the scroll area using 100% for width and height (on the image) but I lose the aspect ratio.

Maybe I'm missing something...

Thank you again.

Maurizio