Sie sind nicht angemeldet.

1

Dienstag, 8. September 2015, 09:47

how to resize user layer from krpano stagescale

scrollarea.js and scrollarea.swf, both start at scale 0.5, when mobile, start at 1.

<krpano stagescale="calc:stagescale * (1.0 + 1.0 * (stagescale LT 1.0))" device="moblie"/> this could find in vtourskin.xml.

how to let my plugin rescale size like scrollarea plugin. how to make them be related?



<layer name="my plugin" url="my_plugin.swf" alturl="my_plugin.js"/>

Please help me, Thank you!

2

Dienstag, 8. September 2015, 17:01

Hi,

use the onresize plugin event in your plugin code:
http://krpano.com/docu/plugininterface/#onresize

and use there the krpano.stagescale value when adjusting sizes.

Best regards,
Klaus

3

Mittwoch, 9. September 2015, 09:57

*thumbsup* Thank you very much. It works.