On 03/03/2010 06:30 PM, Robert Hanson wrote:
> 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?
> 
Thanks, Bob. It sounds good. But there still remains a problem:
How to resize the applet without using the CSS property?
As far as I remember it was the only reliable way I found that worked in
all browsers tested.
I could calculate a scaling factor but this will presumably end up in
rounding problems (e.g.: 599x599 instead of 600x600).

Regards,
Rolf

------------------------------------------------------------------------------
Download Intel® 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