David, the real problem is that you are creating a nonsquare applet. I understand your desire -- to fit the applet to the user's browser. But instead of that, I recommend picking the smaller of your two dimensions, Math.min(frameWidth* .6,frameHeight* .99), and make that both the height and width. This way the molecule will fit nicely in the applet.

see http://sourceforge.net/mailarchive/message.php?msg_id=13874696
where Miguel wrote:

In 10.00 the applet was scaled so that the molecule would fit within the *smaller* of the two dimensions (when displayed with spacefill 100%).

With more recent releases, the molecule is scaled so that it fits within the *larger* of the two dimensions.


-Bob Hanson

David Marcey wrote:
Thanks to Miguel for the excellent changes in illustrating bonds in pre-release v. 10.00.47! I've noticed that this version seems to load molecules translated approx. +130% on Z (zoomed) and translated approx. +10% (down) on Y compared to the loads with v. 10.00. This presents no real problem when running the Jmol Application, but can cause problems for those of us serving multiple molecular displays using the new Applet. If the sizing and positioning changes do not remain the same in new versus old versions, many of us will need to significantly edit each molecular display we serve when new versions are introduced.

For examples, compare the loaded nucleosome pdbs on these web pages:

http://www.clunet.edu/BioDev/omm/test/jmol10_00_47/nucleosome2/start.html (v. 10.00.47)

with

http://www.clunet.edu/BioDev/omm/jmol/nucleosome/start.html (v. 10.00)

Is anyone else noticing this, and if so, is anyone else concerned?

Cheers,
David

--

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to