Forum Discussion
IE Mode - Edge ignores user preference for popup window position
AndrewSAIF Hello Again! Just to confirm, the question/request is to have the popup window preference remembered? Basically if the popup window opens offscreen and the user moves it onscreen, the next time the popup window opens it will open onscreen. Is that correct?
You mentioned this works fine in Edge mode and also on IE. Does that mean in subsequent openings, the popup window is opened onscreen where the user moved it previously?
Thanks!
-Kelly
- AndrewSAIFNov 19, 2020Iron Contributor
Hi Kelly,
Thanks for the response. Yes, my preference/expected behavior would be that Edge opens popups in IE Mode respecting the screen boundaries and if the window for some reason opens outside the screen bounds, there should be a way for the user to remedy this for subsequent opens.
I went back and retested IE and Edge based on your second paragraph. It appears that I was mistaken in my assumption that IE and Edge were remembering the user preference. At least in Edge, the window position is recorded in the preferences file, but this doesn't seem to control where the window will open next. However, both IE and Edge (in Edge mode) correctly respect the screen bounds when opening these popups.
After a little more testing I think Edge might be opening these windows out of bounds only when multiple displays are present, and not all displays are using the same scaling (such as when an external monitor is connected to a laptop).
It should be possible to duplicate the issue this way:
- Set the main display to 125% scaling
- Connect a 2nd display and set it to 100% scaling
- Open an Edge window full screen on the 2nd display
- Invoke the type of popup in IE Mode described in my original post (window.open)
The window will open at least partially offscreen. It may be necessary to change the relative position of the displays in Display Settings to wind up with a configuration that results in an offscreen window.
Maybe IE Mode is basing the popup position on the main display scaling for all displays?
- Kelly_YNov 19, 2020Microsoft
AndrewSAIF Thanks for the additional information! I will check with the IE Mode team and follow up with any updates from them.
-Kelly
- Kelly_YNov 20, 2020Microsoft
AndrewSAIF The IE Mode team appreciated the detailed report They still need to investigate further and follow up.
Regarding workarounds, they said:
"Unfortunately I don't have any great ideas for workarounds. If you can change the page, you could maybe adjust it to create a new tab instead of a new window (drop the third param to window.open), or to use specific coordinates that don't exhibit the bug (left and top in the feature string)."
We will let you know if they need any more information. Thanks!
-Kelly