Randy Webb said:
Jim Davis said the following on 9/7/2005 8:31 PM:
That's not entirely true. My browser reports, for screen width, the total
width of my monitors. Which varies based on how I have them arranged. I
can make them horizontal or vertical or a square.
I should have have said "display" not screen (which is the wrong word for
this)... of course JavaScript doesn't know anything about "Screens" (or if
you even have a monitor) just about defined "displays". I'll bet in your
case these aren't independent displays.
There are two general multi-monitor display options available:
1) Spanned display: this option "stretches" your desktop across multiple
monitors. Although there ARE multiple monitors applications actually only
see one primary display (with an odd resolution). Most spanned displays are
limited to the same resolution and color depth on all monitors. Although
you have multiple monitors you have only one "display" (the primary one)
stretched across them - and JavaScript sees only that.
2) Independent displays. In this case each monitor can have the independent
color depth and resolution. You can, for example, have a 1024x1280 primary
display in true color paired with a secondary 1024x768 secondary display in
16 bit color. Again, JavaScript (on all platforms I've seen) only returns
information on the primary display even if the browser window is currently
on the (smaller) secondary display.
It would be nice if the scripting engine could return, instead, an array of
display information which each element being a collection of screen
information (thus an array of three elements would represent three
independent displays). In this vein a way to retrieve which of these
displays is the current "home" of the browser would be nice as well.
Jim Davis