You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, September 8th 2015, 9:47am

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

Tuesday, September 8th 2015, 5:01pm

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

Wednesday, September 9th 2015, 9:57am

*thumbsup* Thank you very much. It works.