I've always avoided dynamic resizing of Jmol applets due to "official" advice
in Jmol webpage
(Miguel's, I guess), but this is an interesting subject. I like dynamic sizes.
I have tested this:
<script type="text/javascript">
function resize(n)
{
document.getElementById("jmolApplet0").width = n
document.getElementById("jmolApplet0").height = n
}
function resizeCSS(n)
{
document.getElementById("jmolApplet0").style.width = n+"px"
document.getElementById("jmolApplet0").style.height = n+"px"
}
</script>
<form>
<input type="text" name="v">
<input type="button" value="resize" onClick="resize(this.form.v.value)">
<input type="button" value="resize CSS" onClick="resizeCSS(this.form.v.value)">
</form>
Both methods work fine in Firefox 1.5, IE 7 and Opera 9.02 (all WinXP)
I haven't tried resizing the window as you, but your code should be doing
something similar to
my functions, right? Maybe what fails is window resize detection, not applet
resizing.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers