IE Mode - Edge ignores user preference for popup window position

%3CLINGO-SUB%20id%3D%22lingo-sub-1892676%22%20slang%3D%22en-US%22%3EIE%20Mode%20-%20Edge%20ignores%20user%20preference%20for%20popup%20window%20position%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1892676%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20had%20some%20users%20report%20some%20odd%20behavior%20with%20IE%20Mode%20popup%20windows%20that%20I've%20been%20able%20to%20duplicate.%20Depending%20on%20the%20user's%20dpi%20settings%2C%20popup%20windows%20may%20open%20partially%20offscreen.%20When%20the%20user%20drags%20the%20window%20back%20onscreen%2C%20Edge%20does%20not%20remember%20the%20new%20popup%20window%20position%20preference%20for%20next%20time%20(whether%20or%20not%20the%20browser%20restarts).%20Running%20the%20same%20site%20in%20Edge%20Mode%20works%20fine.%20Site%20also%20works%20fine%20in%20Internet%20Explorer.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20popups%20we%20are%20calling%20basically%20work%20like%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%3Einput%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Etype%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22button%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eonclick%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3Ewindow%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eopen%3C%2FSPAN%3E%3CSPAN%3E('test.pdf'%2C%26nbsp%3B'_blank'%2C%20'resizable')%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Evalue%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22click%26nbsp%3Bme%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%2F%26gt%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EEdge%20looks%20like%20it%20keeps%20an%20entry%20in%20its%20preferences%20file%20to%20record%20the%20window%20position%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%22window_placement_popup%22%3A%7B%22bottom%22%3A-894%2C%22left%22%3A759%2C%22maximized%22%3Afalse%2C%22right%22%3A1778%2C%22top%22%3A-1722%2C%22work_area_bottom%22%3A-40%2C%22work_area_left%22%3A-770%2C%22work_area_right%22%3A2303%2C%22work_area_top%22%3A-1728%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20position%20values%20do%20change%20when%20a%20popup%20window%20is%20relocated%20on%20the%20screen%20by%20the%20user%2C%20but%20they%20are%20reset%20if%20the%20popup%20is%20closed%20and%20re-opened%2C%20and%20the%20window%20opens%20in%20its%20original%20position.%20The%20value%20they%20get%20reset%20to%20seems%20to%20change%20depending%20on%20what%20DPI%20you%20have%20set.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20Internet%20Explorer%20stores%20the%20location%20preference%20of%20its%20popup%20windows%20in%20HKCU%26gt%3BSoftware%26gt%3BMicrosoft%26gt%3BInternet%20Explorer%26gt%3BMain%26gt%3BWindow_Placement%2C%20but%20changing%20this%20value%20doesn't%20have%20an%20effect%20on%20IE%20Mode%20popups%20either.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20suspect%20the%20IE%20engine%20is%20not%20reading%20either%20of%20these%20preference%20locations%20and%20just%20reverting%20back%20to%20a%20default%20value%20each%20time%20a%20popup%20window%20is%20opened.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20insight%20from%20someone%20working%20on%20IE%20Mode%3F%20Or%20does%20anyone%20have%20a%20clever%20workaround%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1892891%22%20slang%3D%22en-US%22%3ERe%3A%20IE%20Mode%20-%20Edge%20ignores%20user%20preference%20for%20popup%20window%20position%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1892891%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F458117%22%20target%3D%22_blank%22%3E%40AndrewSAIF%3C%2FA%3E%26nbsp%3BHello%20Again!%26nbsp%3B%20Just%20to%20confirm%2C%20the%20question%2Frequest%20is%20to%20have%20the%20popup%20window%20preference%20remembered%3F%26nbsp%3B%20Basically%20if%20the%20popup%20window%20opens%20offscreen%20and%20the%20user%20moves%20it%20onscreen%2C%20the%20next%20time%20the%20popup%20window%20opens%20it%20will%20open%20onscreen.%26nbsp%3B%20Is%20that%20correct%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20mentioned%20this%20works%20fine%20in%20Edge%20mode%20and%20also%20on%20IE.%26nbsp%3B%20Does%20that%20mean%20in%20subsequent%20openings%2C%20the%20popup%20window%20is%20opened%20onscreen%20where%20the%20user%20moved%20it%20previously%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1904716%22%20slang%3D%22en-US%22%3ERe%3A%20IE%20Mode%20-%20Edge%20ignores%20user%20preference%20for%20popup%20window%20position%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1904716%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757644%22%20target%3D%22_blank%22%3E%40Kelly_Y%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Kelly%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20response.%20Yes%2C%20my%20preference%2Fexpected%20behavior%20would%20be%20that%20Edge%20opens%20popups%20in%20IE%20Mode%20respecting%20the%20screen%20boundaries%20and%20if%20the%20window%20for%20some%20reason%20opens%20outside%20the%20screen%20bounds%2C%20there%20should%20be%20a%20way%20for%20the%20user%20to%20remedy%20this%20for%20subsequent%20opens.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20went%20back%20and%20retested%20IE%20and%20Edge%20based%20on%20your%20second%20paragraph.%20It%20appears%20that%20I%20was%20mistaken%20in%20my%20assumption%20that%20IE%20and%20Edge%20were%20remembering%20the%20user%20preference.%20At%20least%20in%20Edge%2C%20the%20window%20position%20is%20recorded%20in%20the%20preferences%20file%2C%20but%20this%20doesn't%20seem%20to%20control%20where%20the%20window%20will%20open%20next.%20However%2C%20both%20IE%20and%20Edge%20(in%20Edge%20mode)%20correctly%20respect%20the%20screen%20bounds%20when%20opening%20these%20popups.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20a%20little%20more%20testing%20I%20think%20Edge%20might%20be%20opening%20these%20windows%20out%20of%20bounds%20only%20when%20multiple%20displays%20are%20present%2C%20and%20not%20all%20displays%20are%20using%20the%20same%20scaling%20(such%20as%20when%20an%20external%20monitor%20is%20connected%20to%20a%20laptop).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20should%20be%20possible%20to%20duplicate%20the%20issue%20this%20way%3A%3C%2FP%3E%3COL%3E%3CLI%3ESet%20the%20main%20display%20to%20125%25%20scaling%3C%2FLI%3E%3CLI%3EConnect%20a%202nd%20display%20and%20set%20it%20to%20100%25%20scaling%3C%2FLI%3E%3CLI%3EOpen%20an%20Edge%20window%20full%20screen%20on%20the%202nd%20display%3C%2FLI%3E%3CLI%3EInvoke%20the%20type%20of%20popup%20in%20IE%20Mode%20described%20in%20my%20original%20post%20(window.open)%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThe%20window%20will%20open%20at%20least%20partially%20offscreen.%20It%20may%20be%20necessary%20to%20change%20the%20relative%20position%20of%20the%20displays%20in%20Display%20Settings%20to%20wind%20up%20with%20a%20configuration%20that%20results%20in%20an%20offscreen%20window.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20IE%20Mode%20is%20basing%20the%20popup%20position%20on%20the%20main%20display%20scaling%20for%20all%20displays%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1912934%22%20slang%3D%22en-US%22%3ERe%3A%20IE%20Mode%20-%20Edge%20ignores%20user%20preference%20for%20popup%20window%20position%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1912934%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F458117%22%20target%3D%22_blank%22%3E%40AndrewSAIF%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20additional%20information!%26nbsp%3B%20I%20will%20check%20with%20the%20IE%20Mode%20team%20and%20follow%20up%20with%20any%20updates%20from%20them.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1919237%22%20slang%3D%22en-US%22%3ERe%3A%20IE%20Mode%20-%20Edge%20ignores%20user%20preference%20for%20popup%20window%20position%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1919237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F458117%22%20target%3D%22_blank%22%3E%40AndrewSAIF%3C%2FA%3E%26nbsp%3BThe%20IE%20Mode%20team%20appreciated%20the%20detailed%20report%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%26nbsp%3B%20%26nbsp%3BThey%20still%20need%20to%20investigate%20further%20and%20follow%20up.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegarding%20workarounds%2C%20they%20said%3A%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CEM%3E%22Unfortunately%20I%20don't%20have%20any%20great%20ideas%20for%20workarounds.%20If%20you%20can%20change%20the%20page%2C%20you%20could%20maybe%20adjust%20it%20to%20create%20a%20new%20tab%20instead%20of%20a%20new%20window%20(drop%20the%20third%20param%20to%20window.open)%2C%20or%20to%20use%20specific%20coordinates%20that%20don't%20exhibit%20the%20bug%20(left%20and%20top%20in%20the%20feature%20string).%22%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20will%20let%20you%20know%20if%20they%20need%20any%20more%20information.%26nbsp%3B%20Thanks!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
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