On 02/03/2015 03:12 PM, Eric Martz wrote: > Hi, Gabriel, > > The JSmol menu has never worked in FirstGlance. I have never had a clue > why it does not work. I have asked on this list several times but > received no insights. When I need to use the menu, I change to Java mode. > > I hope someone can give us an idea. I have wondered if it is opening but > 100% out of view. When you right click to open it, there is a pause and > you can see that the browser is probably getting the menu code from the > server, but no menu appears. > > http://firstglance.jmol.org > If I look at the page with the 'Firefox Inspector' the beginning of the HTML code for the menu looks like this after doing a right-click to open the popup menu:
<ul id="jmolApplet0_Frank_top_783" class="jmolPopupMenu"></ul> <ul id="jmolApplet0_popupMenu_top_1" class="jmolPopupMenu" style="top: 43px; left: 552px;" After selecting the second '<ul>' element in the 'Inspector' the CSS information (see below) shows that it has a 'display: none' style property. This prevents the visibility. The question would be, why it is not changed to 'display: block'? The latest 'Firefox Inspector' offers also an option to look at the Javascript attached to events at a specific element. Bu you should use the uncompressed Version 'JSmol.js' instead of 'JSmol.min.js' to debug this. If I deactivate 'display:none', the menu becomes visible, but the styles are not applied as usual. ------- CSS Info ------------ element { display: none; top: 43px; left: 552px; } .jmolPopupMenu, .jmolPopupMenu .ui-menu { list-style: outside none none; padding: 2px; margin: 0px; display: block; outline: medium none; box-shadow: 1px 1px 5px rgba(50, 50, 50, 0.75); } .jmolPopupMenu, .jmolPopupMenu .ui-widget-content { border: 1px solid #A6C9E2; background-color: #FCFDFD; color: #222; } .jmolPopupMenu, .jmolPopupMenu .ui-corner-all { border-radius: 5px; } .jmolPopupMenu { font-family: Arial,sans-serif; font-size: 11px; position: absolute; z-index: 99008; } .jmolPopupMenu, .jmolPopupMenu .ui-menu { list-style: outside none none; padding: 2px; margin: 0px; display: block; outline: medium none; box-shadow: 1px 1px 5px rgba(50, 50, 50, 0.75); } .jmolPopupMenu, .jmolPopupMenu .ui-widget-content { border: 1px solid #A6C9E2; background-color: #FCFDFD; color: #222; } .jmolPopupMenu, .jmolPopupMenu .ui-corner-all { border-radius: 5px; } .jmolPopupMenu { font-family: Arial,sans-serif; font-size: 11px; position: absolute; z-index: 99008; } ----------------------------- But even after solving the riddle about 'display:none' and the styling problem there is still another problem: The '<body>' tag has 'overflow: hidden' as style. This would prevent that most of the menu could be seen after the frank' ("JSmol") would be clicked, even if the menu itself would be displayed. And also on right-click in the lower part of JSmol some part of the menu would be invisible. You might consider to try to get rid of all the problems by adding a button to your interface to make the menu visible and control the position, size, etc. directly by modifying the CSS properties. And you could give the menu a 'overflow:scroll' style to keep the current setting of 'overflow:hidden' for the '<body>' tag. Regards, Rolf > Eric > > > > On 2/3/15 4:46 AM, GABRIEL PONS IRAZAZABAL wrote: >> Good Morning, >> I have two qüestions: >> 1. The animated gif Works very well in the last version of jmol. However, In >> my hands the size of the file is too big and is not very usefull to incude >> it in presentations. Is there any way to decrease its size? It is possible >> to decrease the number of images recorded >> 2. The second question is about First Glance in Jmol. Outstanding the >> performance without Java. However in my computer, no matter the browser I >> use, the menu from the right pannel (jmol ) does not work. It is weird >> because it Works perfectly in proteopedia >> >> Gabriel Pons >> >> >> Aquest correu electrònic i els annexos poden contenir informació >> confidencial o protegida legalment i està adreçat exclusivament a la persona >> o entitat destinatària. Si no sou el destinatari final o la persona >> encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, >> modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu >> rebut aquest correu electrònic per error, us preguem que n’informeu al >> remitent i que elimineu del sistema el missatge i el material annex que >> pugui contenir. Gràcies per la vostra col·laboració. >> >> Este correo electrónico y sus anexos pueden contener información >> confidencial o legalmente protegida y está exclusivamente dirigido a la >> persona o entidad destinataria. Si usted no es el destinatario final o la >> persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, >> modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha >> recibido este mensaje electrónico por error, le rogamos que informe al >> remitente y elimine del sistema el mensaje y el material anexo que pueda >> contener. Gracias por su colaboración. >> >> This email message and any documents attached to it may contain confidential >> or legally protected material and are intended solely for the use of the >> individual or organization to whom they are addressed. We remind you that if >> you are not the intended recipient of this email message or the person >> responsible for processing it, then you are not authorized to read, save, >> modify, send, copy or disclose any of its contents. If you have received >> this email message by mistake, we kindly ask you to inform the sender of >> this and to eliminate both the message and any attachments it carries from >> your account. Thank you for your collaboration. >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- 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: rhue...@fli-leibniz.de 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 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users