Ah -- interesting. Only the CSS method works with Opera 8.55. From a
Jmol point of view there is no reason not to resize -- the code is all
set up for it, and it is done all the time as standard operation with
the application. I think we can provisionally recommend the CSS method.
Lots of interesting possibilities there. Note that the
getProperty("image") method then gets you a much higher resolution shot,
and you can do the resize just temporarily, get the image, and then
resize back if you wanted.
Bob
Angel Herraez wrote:
>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
>
>
-------------------------------------------------------------------------
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