hi,
here the problem,
i got an hidden map on left side (outside krpano) wich slide to the left pushing the pano area to the right side,
but actually the pano area is no more centered on the 2/3 screen, i mean if i got a dead-centered hotspot on pano,
after the move , there an offset to the right side indicating the pano area is outside the view frame
normally ,the pano should first move to the right (x position change) then adapt itself to the new area (2/3 screen),
so centered spot should remains in center of pano area...
here the code :
Code
<area x="0" y="0" width="100%" height="100%" />
puis
<action name="show_map">
tween(plugin[maps].x, 0, 0.3);
wait(0.0);
tween(area.x, 33%, 0.3);
tween(area.y, 0, 0.3);
<-- tween(area.width, 68%, 0.3); --> this has no effect
tween(area.height, 100%, 0.3);
set(destwidth, 250);
tween(area.width, get(destwidth),,,WAIT); --> this is a test, and the pano area width set to 250 large then back to 100%
set(map_on, true);
</action>
<action name="hide_map">
tween(area.x, 0, 0.3);
tween(area.y, 0, 0.3);
tween(area.width, 100%, 0.3);
tween(area.height, 100%, 0.3);
wait(0.0);
tween(plugin[maps].x, -33%, 0.3);
set(map_on, false);
</action>
Display More
so where the solution ?
thanks