IE Mode - Edge ignores user preference for popup window position

Iron Contributor

Hello,

 

I've had some users report some odd behavior with IE Mode popup windows that I've been able to duplicate. Depending on the user's dpi settings, popup windows may open partially offscreen. When the user drags the window back onscreen, Edge does not remember the new popup window position preference for next time (whether or not the browser restarts). Running the same site in Edge Mode works fine. Site also works fine in Internet Explorer. 

The popups we are calling basically work like this:

<input type="button" onclick="window.open('test.pdf', '_blank', 'resizable');" value="click me" />

Edge looks like it keeps an entry in its preferences file to record the window position:

"window_placement_popup":{"bottom":-894,"left":759,"maximized":false,"right":1778,"top":-1722,"work_area_bottom":-40,"work_area_left":-770,"work_area_right":2303,"work_area_top":-1728}

 

These position values do change when a popup window is relocated on the screen by the user, but they are reset if the popup is closed and re-opened, and the window opens in its original position. The value they get reset to seems to change depending on what DPI you have set. 

 

It looks like Internet Explorer stores the location preference of its popup windows in HKCU>Software>Microsoft>Internet Explorer>Main>Window_Placement, but changing this value doesn't have an effect on IE Mode popups either. 

 

I suspect the IE engine is not reading either of these preference locations and just reverting back to a default value each time a popup window is opened. 

 

Any insight from someone working on IE Mode? Or does anyone have a clever workaround? 

 

Thanks!

7 Replies

@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

@Kelly_Y 

 

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:

  1. Set the main display to 125% scaling
  2. Connect a 2nd display and set it to 100% scaling
  3. Open an Edge window full screen on the 2nd display
  4. 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? 

 

@AndrewSAIF Thanks for the additional information!  I will check with the IE Mode team and follow up with any updates from them.  

 

-Kelly

@AndrewSAIF The IE Mode team appreciated the detailed report :smile:   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

@Kelly_Y 

Hi I have the same issue and I have the setup described, laptop at one resolution (3840 * 2160) and 2 additional monitors at a different resolution (1920 * 1080).  And I do not wish to change the resolution as a solution.  Works perfectly well with chrome and Firefox.

 

The response from the technical team is not very helpful, as generally a pop up screen is clicked by the user from a 3rd party webpage which I don't believe we have control over the position it will open? Unless you can describe a way to do that.  I am probably not as IT savvy as the other person.

 

I also struggle most of the time to use the move command to get the window back to the screen bounds and hence having started moving away from using Edge when using websites that require pop up / chat screens.  I would therefor ask that this is looked in to with some urgency as have seen the same remarks on various forums.

 

@AndrewSAIF

@Baz69 Hello!  Thanks for the feedback!  I've passed it on to the IE mode team and will keep this thread updated with any news.

 

-Kelly

@Baz69 Just a quick follow up, can you confirm you are having this issue with websites that are on the IE mode site list?  

 

If it is not related to IE mode, losing windows offscreen with multi-monitors is something that's been an issue in Windows.  Here's one trick that is useful to remember which moves an offscreen window: Alt+space, M, arrow key, move mouse, click

 

Thanks! 

 

-Kelly