Here's an idea: You can set a resizeCallback that will let you know that the
applet was resized. (It returns the new width and height as second and third
parameters, respectively.) Then you could compare that with your CSS
settings and from that, I think, determine if the applet was resized by
zooming or not. Then resize the applet to your specifications. Be careful
not to get into an endless loop!

Perhaps?


On Wed, Mar 3, 2010 at 10:58 AM, Rolf Huehne <rhue...@fli-leibniz.de> wrote:

>      Hi all,
>
> I noticed today that the Jmol applet is resized in the main browsers
> (recent versions of IE, Firefox, Chrome, Safari, Opera) with a zoom change.
> Unfortunately this makes it difficult to set a defined applet size for
> exporting a snapshot image. The applet size is always scaled
> additionally by the zoom factor, compared to the initial size.
> The applet is currently resized within our Jena3D viewer by setting the
> CSS properties "width" and "height".
> Does anyone know a reliable way to resize the applet without this
> additional scaling factor?
>

(I would really like to avoid having to instruct the users to reset the
> zoom level to be able to define the applet size. Or in some browsers to
> set the option "zoom text only".)
>
>




> Regards,
> Rolf
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to