Apologies for lack of clarity, Angel. What I mean is this: if you do decide
to modify jmolResize so it takes a single 'size' argument of the same form
as that parameter for jmolApplet - i.e. 0.0 - 1.0 or "xx%" or n where n > 1
and is no. pixels - then clearly the parsing and handling of the argument
will be identical to that of jmolApplet, in which case any such handling in
jmolApplet can be removed and a simple 'jmolResize(size, targetSuffix)' call
made instead.


2009/6/13 Angel Herráez <[email protected]>

> On 13 Jun 2009 at 13:12, N David Brown wrote:
> > Forgive me for nitpicking (I'm a computer scientist, not a chemist!) -
> why not improve
> > consistency by making the w, h arguments be passed and interpreted in the
> exact same way as
> > in function jmolApplet(size, ...)?
>
> As I said, this jmolResize() is a bit odd. I guess (1) is it old and
> predates the functionality in
> jmolApplet() regarding size in percent. (2) it was a quick implementation
> by Bob, it seems
> related to the resizable popup window feature.
>
> > i.e. a two-member array which also allows percentage dimension
> > specification in the form "50%", "25%" etc.
>
> That can probably be done and not difficult. I was just doing the easy fast
> fix.
>
> > It seems logical to me to pass the size argument
> > directly from jmolApplet(..) to jmolResize(..), but perhaps there are
> related issues of which I'm
> > unaware.
>
> I don't get your point fully. JmolApplet() inserts an applet, and you can
> pass any size. We
> can probably make jmolResize() work with the same syntax, but I dn't
> understand "pass
> directly from". Can you clarify?
>
>
>
>


-- 

- N David Brown
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to