Frames/divs

The div can be scaled as a % height, but this breaks the scrolling in IE, although not in Safari/Mozilla. I figured that since we cannot (should not, according to the Jmol.js docs) scale the applet box to the window size, this was not too much of an issue, and I simply provided a small version for small monitors. I guess even that may be too tall for an 800x600 monitor with a lot of toolbars at the top of the browser.

% sizing of the applet would be a desirable feature.

Bob Hanson wrote:

Frames: Pretty close! I'm almost sold on divs and ready to say I'm done developing with frames. Can you dynamically set the height of that div so that it adjusts to overall window height? On my machine the scroller goes down below the bottom of my screen, so I have to "scroll to scroll" That, of course, doesn't happen with frames.

Frames were so nice because they allowed for automatic fractional window amounts. Is this possible easily with divs, or do you have to hard code all the coordinates. "position:absolute" can be difficult.

[I know this is a bit off the focus of the Jmol list, so I'm cross-posting to ChemWebDev.]

Bob Hanson

Andy Bates wrote:

Angel and Folks

There was an earlier discussion about the desirability of managing without frames, so in that spirit, I put together the following with a scrolling div - I had previously used frames with Chime. As long as the div is 'position: absolute' and 'overflow: auto', then it works fine (with Jmol.js):

http://www.liv.ac.uk/sbs/DNA_Topology/HelixL.htm

Cheers

Andy


--
Dr Andrew D. Bates
School of Biological Sciences
University of Liverpool
The Biosciences Building
Crown Street Liverpool L69 7ZB UK
Tel-(+44) (0)151 795 4563
Fax-(+44) (0)151 795 4410
Mobile-(+44) (0)797 324 7956
http://www.liv.ac.uk/~bates/


 DNA Topology - Bates and Maxwell
 Available now through all good bookshops, or direct from OUP at:
 http://www.oup.co.uk/isbn/0-19-850655-4

 Liverpool - European Capital of Culture 2008
 http://www.liverpool08.com/


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to