Thank you for all the responses. I am using Bootstrap to layout the page. The problem is that the divs where the jsmol view will go into are empty on load. When I specify ‘100%’ as width for the jsmol view, I get
Uncaught IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0. I want the page to be responsive to any size. Thanks, Thomas > On Jul 8, 2015, at 5:22 PM, Thomas Hrabe <thr...@gmail.com> wrote: > > Despite Angel’s answer, I yet have not figured out one thing: > > I am using a responsive framework, so when the size of the jsmol container > changes, the size of the jsmol view does not adapt and starts overlaping > other elements. > How can I make it dynamic? > > Thanks, > Thomas > >> On Jun 30, 2015, at 3:33 PM, Angel Herráez <angel.herr...@uah.es> wrote: >> >> Hi, Thomas >> >> If the container has a declared size (usually with css), just give JSmol >> 100%: >> >> var Info = { >> height: "100%", >> width: "100%" >> }; >> Jmol.getApplet("myJmol", Info); >> >> > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users