Hi, I've created lots of Jmol/Jsmol protein tutorial pages based on online tutorials from David Marcey. They all use frames. Here is my latest simple example in which there are buttons to either calculate or load premade surfaces.
http://employees.csbsju.edu/hjakubowski/Jmol14/HAAPBJmol/1xww_surfaceV1.htm My major problem is that when the JSmol is view in a small screen (iPhone, iPad), the molecule does not display in the center of the left hand modeling frame, and it is always cut in half. I can resize it but it still only half shows up. I've tried simple changes in the code to change sizes, proportions, but nothing works. An IT person who helps me also can't get it to change. Both http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info and http://wiki.jmol.org/index.php/Jmol_PHP have info about using the width and height in the info variable to control the size of the molecule window. However nothing we do changes anything. I also have a resizing issue on the most simple of molecules. Again this is based on frames. http://employees.csbsju.edu/hjakubowski/Jmol14/EthaneStaggered/EthaneStaggered_NEW.htm?_USE=HTML5 This molecule is small enough to be centered (sometimes), but the display is way to big (check it out on an iPhone) and I can't change any code to shrink it. Is there a simple way to get frames to display the molecule in the center of the modeling window and of the desired size? If not, do I need to change all my tutorials and get rid of frames (which I know is somewhat outdated). If so would there be a simple online tutorial that would show me how to do this? Hopefully this is my only question of the year. Thanks Henry Jakubowski (a cut and paste Jmol code writer) Professor, Chemistry Department<http://www.csbsju.edu/chemistry/> College St. Benedict/St John's University<http://www.csbsju.edu/> 241 Ardolf Science Center 37 S. College Ave. St. Joseph, MN 56374 O: 320.363.5354 F: 320.363.5582 E: hjakubow...@csbsju.edu<mailto:hjakubow...@csbsju.edu> W: http://faculty.csbsju.edu/hjakubowski Biochemistry Online: A Course Based on Chemical Logic<http://employees.csbsju.edu/hjakubowski/classes/ch331/bcintro/default.html>
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users