Do try Angel's idea of setting the applet at 100% and then setting the size
of the div. Make sure that if you have any nesting of divs that ALL of them
have sizes set explicitly:
<div ... style="width:500px;height:500px">
<div.... style="width:80%;height:80%">
<script...>jmolApplet(["100%","100%"].....)..</script>
</div>
</div>
etc.
On Sat, Apr 2, 2011 at 11:18 PM, Yingjie Lin <[email protected]> wrote:
> Hi Bob,
>
> > then at the end of the script "...." you have there, add:
> > javascript "myOtherFunc()"
>
> That's a good idea!
>
> > works for Window7/Firefox
> >> I use jmolResizeApplet() on my HTML page, and it works perfectly in
> Safari.
> >> However, it behaves strangely in Firefox.
> >> You can try it here:
>
> I use the latest version of Firefox for Mac.
> So, I guess its more a Firefox problem than a Jmol problem.
> I really need my page to behave stably in all major browsers, is there any
> thing
> I can do to get it to work in Firefox for Mac? If not I may have to remove
> the "resize
> applet" option from my page.
>
> Thank you.
>
> Yingjie
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users