My test setup is a laptop with resolution 1366 x 768 running as the primary display and
an attached monitor with resolution 1920 x 1080 running as the second display.
Assuming a maximised browser at 100% zoom I would expect window.screenY equal to 0 (or a negative value equal to the chrome e.g. -8)
On the second monitor I am getting:
A difference of -195 in each instance.
Presumably this difference has some relationship to the difference in the respective display heights?
768 – 1080 = -312
-312 / 2 = -156
With regard to screen.height on the second display:
IE returns the height of the primary display 768
The other browsers return that of the second display 1080
So in either instance there is only information about one of the displays.
Any thoughts would be appreciated. Thanks.
(The displays in my example match the physical set up. If I swap them round so that the larger display is position 1, then the difference of -195 I described in my question becomes -172. Maybe by co-incidence but -156 -8 -8 = -172.)
(further to my original post I have realised that it is also possible to position displays above and below each other, in addition to left or right, which further alters the outcome for screenY. Maybe there can be no reliable use of screenY in a dual screen environment?)