Hi Thomas,

In the Java applet there was a resize command, but I think that that was lost 
in JSmol. I also think that to make Angel’s suggestion work you are going to 
have to style all parent containers, including html and body, with % 
dimensions. If any parent container has a fixed dimension, it’s going to lock 
in place when you resize the window.

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com

> On Jul 8, 2015, at 8: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




------------------------------------------------------------------------------
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

Reply via email to