From: Miguel <[EMAIL PROTECTED]>
> Phil wrote:
> 
> > Another useful bit in the JavaScript library would be a piece of 
> code that
> > would allow us to call Jmol as a percentage of the open window. 
> Specifying> the size of the Jmol app in pixels is worrisome since 
> developers never
> > know a priori the client's screen resolution or the size of the open
> > browser window, which can be different again.
> 
> That sounds like a good idea.
> 
> > As Tim Driscoll's earlier demos showed, we 'only' need to have some
> > JavaScript code for handling the three different ways that existing
> > browsers return the window size.
> 
> From your perspective, what are the screen sizes of interest? Or, put
> another way, what are the screen dimension cut-offs for the Small, 
> Medium,and Large screen sizes?

For my applications to date, I (and others) have constructed webpages that includes a 
narrow navigation bar across the top of the browser window, a chime/jmol window that 
is say 70% of the width of the browser window, beneath which sits the atomic key and 
some display buttons; the 30% of the browser window to the right of the chime/jmol app 
is occupied by text and buttons accompanying the display. 

I've done this with frames, of course, both for simplicity's sake in coding and for 
making the text scrollable while the chime/jmol window and navigation bar stays put. 
What that means is that I set the frame containing the chime/jmol window at 70% of the 
browser window size and then set the chime to be 100% of the frame size. It would be 
convenient if the js call to Jmol could accomodate a percentage of whatever size 
window/frame calls it.

This percentage approach has made the 'look' of the page fairly uniform across (full 
screen) 1024x768 and 800x600 screens and LCD projectors, as well as 1280x1024, as well 
as portions of the full screen.

As to Medium screen sizes, otherwise there are some computer/browser/tv combinations 
that use tv screens w/ a different aspect ratio than most computer screens and lower 
pixel count, if I recall correctly. It would be nice to service those viewers 
seamlessly, without knowing the details of their screen size.

Yet smaller would be some of the pda screens and those cell phones that are migrating 
toward that browser capability too. But whether we think that 176x208 or 96x65 pixels 
is a large enough screen to bother Jmol with is hard to say. However, if we accomodate 
specifying a percentage of the window for Jmol, then we won't have a condition where 
we specify more pixels than a small screen has.

--Phil



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to