> ... was concerned that jmol would not obey height and > width *percentage of window* values (vs. pixel counts),
It is not really Jmol as much as it is the 'Applet Container'. The Applet Container tells Jmol what size it should be. > so he used javascript to look at the > window size and write pixel values for height > and width into the jmol applet tag. I think that is the right thing to do. > That turns out to be a problem for Gecko browsers (see below), OK > However, I find that on Windows (98), in Internet Explorer and > Gecko (Firefox), the % values for jmol height/width work perfectly. > > My question for you, Miguel: > In what browsers/platforms do jmol applet percentage-of-window > height/width values fail? It is not an area where I have a lot of experience. A couple of years ago I observed that things would die if the window was resized. That is, if the user dragged to increase the size of the window then the sizes get recalculated very frequently. This caused some browsers to die, esp Mac. Therefore, I made the decision to recommend fixed window sizes ... and have never looked under that rock again. > If they fail in important cases, will > this be fixable in the near future? This is nothing that I can fix ... it is part of the Applet Container that is built into the browser. I encourage you to do your own testing. Jmol does no checking to see that the sizes are fixed pixel counts. Indeed it really cannot do any checking because those are direct attributes of the <applet> tag and are therefore arguments to the Applet Container. All you have to do is put in percentages, then test on all your platforms. If you want to make sure that your application is robust then be sure and test window resizing on slow hardware. And especially test Mac OS X, where applet problems continue to be the worst. > --------------------------------- [snip] > So, next just for laughs I tried using % values > for h/w in the applet tag. They work PERFECTLY in > Win98 in IE and Gecko. Yes, this is the 'testing' that I encourage you to perform. > Where is it that they don't work? (Safafi?) Like I said ... probably Safari, perhaps others too. Miguel ----- Open Source Molecular Visualization www.jmol.org [EMAIL PROTECTED] ----- ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_ids93&alloc_id281&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

