#394 11.1.28 - applet resizing problem

closed
nobody
None
5
2007-12-30
2007-04-23
Rolf Huehne
No

If the applet is resized for example with 'document.getElementById("jmolApplet0").style.width = 1600' and 'document.getElementById("jmolApplet0").style.height = 1600' and then resized back to the original size (600x600), the second resize is not fully recognized internally. The applet is resized but the model shown is not adapted automatically to the new size. And if an image is requested with the function "jmolGetPropertyAsString("image")" it still has 1600x1600 pixels.

This problem is demonstrated at the following URL: http://www.fli-leibniz.de/cgi-bin/3d_mapping-resize.pl?CODE=1deh&JMOLVERSION=11.1.28

After loading the page first resize the graphics window to 1600x1600 pixel, then resize it to 600x600 pixel and generate a snapshot with the "snapshot" button.

It seems to work properly if the second resize is not to the initial size.

Discussion

  • Bob Hanson

    Bob Hanson - 2007-06-03

    Logged In: YES
    user_id=1082841
    Originator: NO

    http://www.fli-leibniz.de/cgi-bin/3d_mapping-resize.pl?CODE=1deh&JMOLVERSION=11.1.28

    [ok]

    After loading the page first resize the graphics window to 1600x1600 pixel,
    [ok]

    then resize it to 600x600 pixel and generate a snapshot with the "snapshot"
    button.
    [ok -- looks good to me]
    Is there a problem here?

     
  • Rolf Huehne

    Rolf Huehne - 2007-06-06

    Logged In: YES
    user_id=1344570
    Originator: YES

    Currently it looks as if the problem is somehow browser dependent. On my system (Java 1.4.2_13, SuSE Linux 9.3) the problem is almost totally reproducible in Firefox 1.5.0.10 (5 out of 6 cases when I tried it a few minutes ago). I am quite sure that I also tried it in MSIE and Firefox on Windows several weeks ago and there was the same problem. Right now I couldn't reproduce it there either.

    Fortunatly I have already found a workaround so that we could integrate the very useful resizing option already in our Jmol interface: the initial size is set to 602x602 and after finishing the page it is resized to 600x600.

     
  • Bob Hanson

    Bob Hanson - 2007-06-12

    Logged In: YES
    user_id=1082841
    Originator: NO

    not included in Jmol 11.2.0 -- needs better definition; probably not a Jmol issue.

     
  • Bob Hanson

    Bob Hanson - 2007-12-30
    • status: open --> closed
     
  • Bob Hanson

    Bob Hanson - 2007-12-30

    Logged In: YES
    user_id=1082841
    Originator: NO

    not reproducible in 11.3.66

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks