It was a bug in JSmol.js  Browsers will differ, but at least FF and Chrome
will update while you move -- actually 100 ms after you stop resizing.

see http://chemapps.stolaf.edu/jmol/jsmol/resize.htm

and http://chemapps.stolaf.edu/jmol/jsmol.zip




On Tue, May 7, 2013 at 9:39 PM, Robert Hanson <[email protected]> wrote:

> Then that's a bug. I had that fixed, I'm sure. Don't reload the state.
>
>
> On Tue, May 7, 2013 at 2:34 PM, Angel Herráez <[email protected]>wrote:
>
>> On 7 May 2013 at 13:36, Robert Hanson wrote:
>> > I don't understand the resize idea:
>>
>> Without that, the canvas image gets distorted when you resize the window,
>> until you again interact with Jmol (rotation by mouse dragging). What I'm
>> doing here is to force a refresh, if not while resizing at least when
>> window
>> resize is done, so the model doesn't look distorted. Better user
>> experience in
>> my view.
>>
>>
>> > Why is that nececessary? Wouldn't that return the original popup view
>> if I adjust the window.
>>
>> As I said, not until you move the model after a window resize.
>> See attached screenshots
>>
>>
>>
>>
>> The following section of this message contains a file attachment
>> prepared for transmission using the Internet MIME message format.
>> If you are using Pegasus Mail, or any other MIME-compliant system,
>> you should be able to save it or view it from within your mailer.
>> If you cannot, please ask your system administrator for assistance.
>>
>>    ---- File information -----------
>>      File:  resizing.png
>>      Date:  7 May 2013, 21:33
>>      Size:  28386 bytes.
>>      Type:  Unknown
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> 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
>
>


-- 
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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to