Yeah but I thought there was a onresize event in krpano that returns stagewidth and such. Then I could store that in a variable and remove 10px from it. Only I can't figure out the syntax

|
|
Quellcode |
1 |
<events onresize="sub(plugin[image].width,stagewidth,100);" /> |
|
|
Quellcode |
1 |
<events onxmlcomplete="events.onresize();" /> |
yes,Is it possible to substract a % of the stagewidth. For example:
<events onresize="sub(plugin[image].width,stagewidth,50%);" />
which means:
plugin[image].width = stagewidth - 50% (of the stagewidth) ?
Or maybe set a percentage of the stagewidth?
|
|
Quellcode |
1 2 |
mul(halfstagewidth, stagewidth, 0.5); sub(plugin[image].width, stagewidth, halfstagewidth); |

|
|
Quellcode |
1 |
mul(plugin[image].width, stagewidth, 0.5); |