I don't understand the resize idea:

$(window).resize(function () {
  clearTimeout(resizeTimer);
  resizeTimer = setTimeout(refreshJSmol, 100);
  // waits 0.1 seconds, to avoid overload
});
function refreshJSmol() {
  Jmol.script(JSmolClone, 'refresh;');
};
</script>

Why is that nececessary? Wouldn't that return the original popup view
if I adjust the window.




On Tue, May 7, 2013 at 9:10 AM, Angel Herráez <[email protected]> wrote:

> Dear users,
>
> After an inquiry from Christian Bärlocher, I've set up code to open a
> pop-up window with a larger copy of a JSmol panel (as it was
> available in JmolApplet and used in sevral sites).
>
> If you are ineterested, please see instructions and code in the Wiki:
>
> http://wiki.jmol.org/index.php/Recycling_Corner#Opening_a_duplicate_of
> _the_model_in_a_resizable_pop-up_window
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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