PDA

View Full Version : Firefox/Mozilla not scaling vertically


jriley
04-10-2007, 06:05 PM
I discovered that Firefox/Mozilla is not scaling my pano correctly vertically. It does scale at 100% properly horizontally and resizes properly horizontally. It does neither properly vertically! I have checked other people's panos in Firefox and it works fine. I tried making my html the same as the ones that I saw working properly as much as possible and still no go. If you have a sec, could you look at the code to see if it is something obvious?

Take a look at <http://4pi-vr.com/fpp/dinnersm.html>

The xml code is:

<?xml version = '1.0'?>
<panorama>
<parameters>
segments=20
qualityStatic=high
qualityMotion=low
tiltHome=0
zoomHome=1
layer_2 = hotspots.swf
</parameters>
<hotspots>
<global onLoad="alpha=0; alpha=1,1000" >
<spot id="1" url="clickme.png" pan="-2" tilt="-9.5" scaleable="1" smoothing="1" onClick="openUrl(http://apple.com/,_self)" />
<spot id="2" url="clickme.png" pan="-7" tilt="-11" scaleable="1" smoothing="1" onClick="openUrl(http://cnn.com/,_self)" />
<spot id="3" url="clickme.png" pan="-13.5" tilt="-12.5" scaleable="1" smoothing="1" onClick="openUrl(http://salon.com,_self)" />
<spot id="4" url="clickmetrans.png" pan="-22" tilt="-14" scaleable="1" smoothing="1" onClick="openUrl(http://www.brooklynmuseum.org/,_self)" />
</global>
</hotspots>
</panorama>

The html is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fixed size window</title>
</head>
<body>
<script type="text/javascript" src="files/swfobject.js"></script>
<div id="flashcontent">This content requires Adobe Flash Player (http://www.adobe.com/go/getflashplayer/) 9. Please, visit adobe.com (http://www.adobe.com/go/getflashplayer/) to install it</div>
<script type="text/javascript">
var so = new SWFObject("dinnersm.swf", "pano", "100%", "100%", "6.0.65", "#666666");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();
</script>
</body>
</html>


Thanks,

John

jaaaab
04-10-2007, 08:06 PM
hmmmmm

xml doesn't deal with window size.

try to save yout html file with a different doctype:

replace <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

by <html>

may be a doctype problem

mit2m
04-11-2007, 12:01 AM
Hello jriley,
I discovered that Firefox/Mozilla is not scaling my pano correctly vertically. It does scale at 100% properly horizontally and resizes properly horizontally. It does neither properly vertically!

I think you forgot to format the size of the div titled "flashcontent" in your html code.

Try this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fixed size window</title>
<style type="text/css">
<!--
/* hide from ie5 mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #282828;
}
-->
</style>
</head>
<body>

<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">This content requires Adobe Flash Player (http://www.adobe.com/go/getflashplayer/) 9. Please, visit adobe.com (http://www.adobe.com/go/getflashplayer/) to install it</div>

<script type="text/javascript">
var so = new SWFObject("dinnersm.swf", "pano", "100%", "100%", "6.0.65", "#666666");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
window.document["pano"].focus();
</script>

</body>
</html>

HTH, please give feedback.

jriley
04-11-2007, 03:48 AM
Ah, well, that fixed it 8-)

Thanks so much!

John