Hi,
I found mul(stagescale,x); could be very helpful with responsibility of VT design
recently I am using something like that:
<action name="resizing">
if((stageheight LE 800) AND (stageheight GT600), mul(stagescale,0.8););
if((stageheight LE 600) AND (stageheight GT 500), mul(stagescale,0.6););
if((stageheight LE 500), mul(stagescale,0.5););
</action>
it works fine when loading the tour, but it doesn´t work if I turn the tablet or smartphone from e.g. desktop orientation to portrait one. For that I tried to put this action to
even onresize:
<events onresize="resizing();" />
But when doing this, seems that the mul action will take effect each time when I load new panorama in the tour and the siye of my layout shrinks each time
I tried to use instead of math operator mul(stagescale,0.8); action set(stagescale,0.8); but this unfortunately does not work (Excuse my ignorance if this doesn´t have any logic for you, I´m not really a programmer ).
Does anybody have an idea how to overcome this problem? I just simply want to have some exact scaling with particular stageheight. How to do that?
Thanx for the help!