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.

Cheers

Geoff
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to