Issue with window resizing. Microsoft Edge in IE11 Mode accessed from shortcut with -app

%3CLINGO-SUB%20id%3D%22lingo-sub-3250179%22%20slang%3D%22es-ES%22%3EIssue%20with%20window%20resizing.%20Microsoft%20Edge%20in%20IE11%20Mode%20accessed%20from%20shortcut%20with%20-app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3250179%22%20slang%3D%22es-ES%22%3E%3CP%3EJin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20currently%20have%20a%20website%20that%20is%20working%20in%20production%20environments%20correctly%20in%20IE11.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20url%20is%20added%20in%20the%20browser's%20trusted%20sites%20and%20in%20the%20browser%20security%20options%20for%20trusted%20sites%20we%20have%20enabled%20the%20options%20to%20allow%20script-initiated%20windows%20without%20size%20or%20position%20constraints%20and%20allow%20open%20windows%20without%20address%20or%20status%20bar%20%2C%20and%20the%20pop-up%20blocker%20option%20disabled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20constantly%20open%20windows%20with%20window.open%20without%20address%20bar%20(menubar%3D0%2Cscrollbars%3D0%2Cresizable%3D0)%2C%20and%20in%20the%20jsp%20that%20loads%20in%20that%20window%20resize%20by%20scripts%20with%20window.resizeTo%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20lot%20of%20IE%20specific%20javascript%20code%2C%20which%20doesn't%20work%20directly%20in%20Edge%2C%20and%20we're%20trying%20to%20get%20it%20to%20work%20the%20same%20way%20in%20Edge%20with%20IE%20compatibility%20mode%2C%20and%20we%20run%20into%20the%20following%20problems.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Edge%20IE%20compatibility%20mode%2C%20can't%20open%20without%20address%20bar.%20In%20addition%2C%20in%20the%20resizes%2C%20the%20windows%20do%20not%20have%20the%20same%20size%20as%20in%20IE11%20and%20the%20content%20is%20not%20completely%20displayed.%3C%2FP%3E%3CP%3E-%20Edge%20IE%20compatibility%20mode%20using%20-app%20in%20a%20shortcut%20to%20open%20the%20website.%20It%20shows%20without%20address%20bar%2C%20but%20the%20windows.resizeTo%20doesn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20simple%20example%2C%20we%20have%202%20HTML%20pages.%3C%2FP%3E%3CP%3E%3CSTRONG%3Eindex.html%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CTITLE%3EDocument%3C%2FTITLE%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CSCRIPT%3E%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bfunction%20newWindow()%7B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bwindow.open(%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bquot%3Bresize.html%26amp%3Bam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%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%7D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BP%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BEM%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3C%2FSCRIPT%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EWINDOW%20RESIZETO%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20We%20open%20index.html%20in%20Edge%20without%20IE%20mode%2C%3C%2FP%3E%3CP%3E*%20window.resizeTo%20works%20correctly%2C%20the%20window%20is%20resized%3C%2FP%3E%3CP%3E*%20Issues%3A%20Has%20address%20bar%2C%20windows%20resize%20a%20bit%20smaller%20than%20IE11%20and%20IE%20specific%20javascript%20doesn't%20work%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20We%20open%20index.html%20in%20Edge%20with%20IE%20mode%2C%20it%20works%20correctly%2C%3C%2FP%3E%3CP%3E*%20window.resizeTo%20works%20correctly%2C%20the%20window%20is%20resized%3C%2FP%3E%3CP%3E*%20Issues%3A%20Has%20address%20bar%20and%20windows%20resize%20a%20bit%20smaller%20than%20in%20IE11%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20We%20open%20index.html%20in%20Edge%20without%20IE%20mode%2C%20from%20a%20shortcut%20with%20the%20option%20-app%20(%22C%3A%5CProgram%20Files%20(x86)%5CMicrosoft%5CEdge%5CApplication%5Cmsedge.exe%22%20-app%3D%3CA%20href%3D%22http%3A%2F%2Flocalhost%2520%3A8080%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Flocalhost%20%3A8080%2Findex.html%3C%2FA%3E)%2C%3C%2FP%3E%3CP%3E*%20window.resizeTo%20works%20correctly%2C%20the%20window%20is%20resized%3C%2FP%3E%3CP%3E*%20It%20does%20not%20have%20an%20address%20bar%2C%20correct.%3C%2FP%3E%3CP%3E*%20Issues%3A%20IE%20specific%20javascript%20code%20doesn't%20work%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20We%20open%20index.html%20in%20Edge%20with%20IE%20mode%20from%20a%20shortcut%20with%20the%20option%20-app%20(%22C%3A%5CProgram%20Files%20(x86)%5CMicrosoft%5CEdge%5CApplication%5Cmsedge.exe%22%20-app%3D%3CA%20href%3D%22http%3A%2F%2Flocalhost%3A%25208080%2Findex.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Flocalhost%3A%208080%2Findex.html%3C%2FA%3E)%2C%3C%2FP%3E%3CP%3E*%20It%20does%20not%20have%20an%20address%20bar%2C%20correct.%3C%2FP%3E%3CP%3E*%20IE%20specific%20javascript%20code%20works%2C%20correct.%3C%2FP%3E%3CP%3E*%20Issues%3A%20Window%20doesn't%20resize%2C%20window.resizeTo%20doesn't%20run%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20doesn't%20window.resizeTo%20work%20in%20IE11%20compatibility%20mode%20from%20a%20shortcut%20with%20the%20-app%20option%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20get%20the%20same%20result%20as%20in%20IE11%2C%20without%20the%20address%20bar%2C%20that%20the%20IE-specific%20javascript%20code%20works%2C%20and%20that%20the%20window.resizeTo%20resizes%20the%20windows%20correctly%3F%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-3278816%22%20slang%3D%22es-ES%22%3ERe%3A%20Issue%20with%20window%20resizing.%20Microsoft%20Edge%20in%20IE11%20Mode%20accessed%20from%20shortcut%20with%20-app%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3278816%22%20slang%3D%22es-ES%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1325965%22%20target%3D%22_blank%22%3E%40OscarAbad%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20exactly%20the%20same%20case.%20Any%20solution%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

 

We currently have a website that is working in production environments correctly in IE11.

 

The url is added in the browser's trusted sites and in the browser security options for trusted sites we have enabled the options to allow script-initiated windows without size or position constraints and allow open windows without address or status bar , and the pop-up blocker option disabled.

 

We constantly open windows with window.open without address bar (menubar=0,scrollbars=0,resizable=0), and in the jsp that loads in that window resize by scripts with window.resizeTo

 

We have a lot of IE specific javascript code, which doesn't work directly in Edge, and we're trying to get it to work the same way in Edge with IE compatibility mode, and we run into the following problems.

 

- Edge IE compatibility mode, can't open without address bar. In addition, in the resizes, the windows do not have the same size as in IE11 and the content is not completely displayed.

- Edge IE compatibility mode using -app in a shortcut to open the website. It shows without address bar, but the windows.resizeTo doesn't work.

 

A simple example, we have 2 HTML pages.

index.html:

<html>

<head>

                <title>Document</title>

                <script>

                               function newWindow(){

                                               window.open("resize.html", "_blank", "toolbar=no,scrollbars=no,resizable=no,top=500,left=500,width=200,height=200");

                               }

                </script>

</head>

<body>

                <span onclick="newWindow()">OPEN WINDOW RESIZE</span>

</body>

</html>

 

And resize.html:

<html>

<head>

                <title>Document</title>

                <script>

                               function loadComplete(){

                                               window.resizeTo(1000,800);

                               }

                </script>

</head>

 

<body onload="loadComplete()">

                WINDOW RESIZETO

</body>

</html>

 

- We open index.html in Edge without IE mode,

* window.resizeTo works correctly, the window is resized

* Issues: Has address bar, windows resize a bit smaller than IE11 and IE specific javascript doesn't work

 

- We open index.html in Edge with IE mode, it works correctly,

* window.resizeTo works correctly, the window is resized

* Issues: Has address bar and windows resize a bit smaller than in IE11

 

- We open index.html in Edge without IE mode, from a shortcut with the option -app ("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" -app=http://localhost :8080/index.html),

* window.resizeTo works correctly, the window is resized

* It does not have an address bar, correct.

* Issues: IE specific javascript code doesn't work

 

- We open index.html in Edge with IE mode from a shortcut with the option -app ("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" -app=http://localhost: 8080/index.html),

* It does not have an address bar, correct.

* IE specific javascript code works, correct.

* Issues: Window doesn't resize, window.resizeTo doesn't run

 

Why doesn't window.resizeTo work in IE11 compatibility mode from a shortcut with the -app option?

 

Is there a way to get the same result as in IE11, without the address bar, that the IE-specific javascript code works, and that the window.resizeTo resizes the windows correctly?

 

Thanks

1 Reply

@OscarAbad 

We have exactly the same case. Any solution?