Just a guess, but make sure loading your tour is one of the last things you do. Put the code below all the other html and javascript but still inside the body.
As a workaround you could force a resize event.
|
Quellcode
|
1
2
|
embedpano({swf:"files/tour.swf", xml:"files/tour.xml", target:"pano", html5:"auto", passQueryParameters:true});
window.dispatchEvent(new Event('resize'));
|
And if that doesn't work try delaying a bit:
|
Quellcode
|
1
2
|
embedpano({swf:"files/tour.swf", xml:"files/tour.xml", target:"pano", html5:"auto", passQueryParameters:true});
setTimeout(function() { window.dispatchEvent(new Event('resize')); }, 10);
|
All speculation but may be worth a try.