Chrome behaves differently than IE and FF when opening a window with API window.open
and left position specified to a position on the right screen/monitor in a dual screen setup ([screen1][screen2]).
The same happens when the invoking screen is on the right monitor, the left position always starts in the second monitor, although after opening the property screenX
correctly reports the screen width and not 0 (put this window in the second monitor and set left=0
in the jsfiddle below to test this).
It seems that Chrome always snaps the popup position to the invoking window screen.
- Chrome 41.0.2272.76 m
- FF 36.0.1
- IE 11.0.9600.17633
You can try it out in this tiny fiddle http://jsfiddle.net/inglun/en59odar/
For sure, it is an adjustment to prevent windows to end up off screen that fails to take second screen into account. Bug? Is there a way around this?
In the real use case, users place a window on the second screen expecting it to end up there during the following session (maybe tomorrow). Positions are saved in local storage.