translation not transferring -- this is because I was setting the
zoomLarge to false as the very last script command:
function getState(){
if (!opener) {
alert("The page that opened this pop-up window is not available.")
return ""
}
return opener.jmolGetPropertyAsString("stateInfo") + ";zoomLarge =
false"
}
I'm still sorry we changed from the Chime default of scaling based on
the smaller dimension to scaling based on the larger dimension. I'm sure
Miguel had some good reason for that, but I sure can't rationalize why
you would ever want to do that. What happens with the default is that if
you change applet size there is obviously a rescaling that has to
happen, and that rescaling messes with the translation. (Hmm, maybe it
shouldn't....)
I changed this to:
function getState(){
if (!opener) {
alert("The page that opened this pop-up window is not available.")
return ""
}
return
opener.jmolGetPropertyAsString("stateInfo").replace(/initialize/,"initialize;zoomLarge
= false")
}
and now the translation works.
But I'll look into changing the code so that we no longer need to set
zoomLarge = false when the applet size is changed.
Thanks for spotting this, Angel.
Bob
Angel Herraez wrote:
>El 22 Mar 2007 a las 14:35, Bob Hanson escribió:
>
>
>
>>ah, yes. That's item #41 -- use of unicode I just added. The lesson is
>>
>>
>
>
>Works correctly now in IE7, IE6, IE5.5 -WinXP
>
>There is, however, a minor thing (irrespective of browser):
>translation of the model is not reproduced.
>If I move the model with the mouse (Ctrl+right button), let's say to
>the right, that is not copied into the popup window. Same using
>"translate" in the console.
>This happens both for the first opening of the pop-up and for
>subsequent refreshes.
>
>
>
>-------------------------------------------------------------------------
>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