By the way -- this is the error we are getting when the browser sets the
canvas width to a non-integer value. I don't know why it does that, but we
can obviously round the values and be OK. The problem is also associated
with Otis' problem with the right-hand scroll. I am not successfully
detecting the width of the canvas when it has a designated width in
percent, and I have not been able to properly get resize working. If you
know the way to do this reliably for different browsers, do let me know.
Note that we do have jQuery methods. But I'm not sure how to use them in
this case. What I'm looking for is something like this:
Jmol._getElement(jmolApplet0, "canvas2d").getWidth()
note that .width there is not sufficient. That gets the width in "logical
pixels" but not actual pixels.
Bob
On Thu, Nov 15, 2012 at 11:53 AM, Otis Rothenberger
<[email protected]>wrote:
> Bob,
>
> I'm still having problems with Firefox in general, but I did lose local
> usage on Chrome and MSIE after the Windows update. MISE gave me access
> denied errors locally. I still have local control on my Mac (Safari and
> Chrome) - nice because of speed while troubleshooting.
>
> On the former Firefox issue, is the ampersand (var p = pixels[i] &
> 255;) correct in the following code?
>
> Otis
>
> 3554.666748046875 function (text, font3d, g3d) {
> var pixels = g3d.apiPlatform.getTextPixels(text, font3d,
> g3d.platform.getGraphicsForTextOrImage(this.mapWidth, this.height),
> g3d.platform.offscreenImage, this.mapWidth, this.height, this.ascent);
> if (pixels == null) {
> return;
> }
> this.tmap = Clazz.newByteArray(this.size, 0);
> for (var i = pixels.length; --i >= 0;) {
> var p = pixels[i] & 255;
> if (p != 0) {
> this.tmap[i] = org.jmol.g3d.TextRenderer.translucency[p >> 5];
> }
> }
> }
>
>
>
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
>
>
>
>
> On Nov 15, 2012, at 11:25 AM, Robert Hanson wrote:
>
> Overnight I got an automatic Windows update; don't know if that is
> involved, but I notice that this morning I can no longer troubleshoot
> JSmol locally on Firefox (16.0.2, Oct. 26 release) anymore. Works fine
> loading files from the web, just not locally.
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
>
> http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users