On 11/10/2014 02:36 PM, Geoffrey Rowland wrote: > Hi folks > > In some situations, it can be really useful to embed a JSmol instance in an > inline frame. Particularly when using JSmol with, say, CMS systems that use > JavaScript libraries that conflict with JSmol. Note that this use-case does > not involve cross-domain issues. Just using an iframe to 'insulate' JSmol > from JavaScript on the parent page. > > However, although an iframe can be easily sized to a JSmol instance, it can > restrict the visibility of the right-click popup JSmol menu. Of course, the > menu can, to some extnt, be dragged around and an iframe can be set up to > use scrollbars for larger content, but this is not very elegant and can be > unwieldy to use. > > This is not a issue with the Jmol Java applet as the right-click menu > 'floats' over the iframe. > > Anyone have any 'cunning' suggestions on how to improve this for JSmol in > an iframe? - apart from just using a bigger iframe! Perhaps a way of > dynamically resizing the iframe to accommodate the popup menu. > I havn't worked with iframes yet, but shouldn't it be sufficient to set the width and height of the iframe and the parent elements to 'auto' so that they will automatically extend if the popup appears and exceeds the current iframe size? To make this work, all higher level elements must adjust automatically, not just the direct parent element.
Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: [email protected] Website: http://www.fli-leibniz.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Dennys Klein VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

