For testing this, make sure you also do this:

Jmol.setInfo(jmol,"testing")

Jmol.showInfo(jmol,true)

Jmol.showInfo(jmol,false)

to see that the information panel is also resizing.



On Mon, Aug 13, 2012 at 1:27 PM, Angel Herráez <angel.herr...@uah.es> wrote:

> Dear Bob,
>
> The wiki page looks great. Very hepful.
>
> I have started some testing of the new JSO methods, with 13.0.RC5
>
> I am finding some problems with applet sizes.
>
> 1- Percent size does not work (yes, I've put it within an
> explicitly-css-sized
> outer container). The applet shows in zero-height.
>
> 2- Resizing (pixels-based) of the applet does not work either, using
> Jmol.resizeApplet()
>
> I see this as a consequence of the several container divs now inserted
> around the applet itself (info div and so on).
>
> I have patched JmolCore.js and JmolApplet.js and everything seems to work
> fine. The idea is to assign and control only the size of the outer
> container
> (_appletinfotablediv) and make all the inner ones 100% W and H.
>
> Before committing my changes I prefer to ask for any issues envisaged.
>
> Demo pages:
>
> Percent size fails:
> http://biomodel.uah.es/Jmol/JSO/simpleJmol3-0.htm
>
> Resizing fails:
> http://biomodel.uah.es/Jmol/JSO/simpleJmol4-0.htm
>
> After patching:
> http://biomodel.uah.es/Jmol/JSO/simpleJmol3.htm
> http://biomodel.uah.es/Jmol/JSO/simpleJmol4.htm
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to