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

Copper Contributor

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

4 Replies

@OscarAbad 

We have exactly the same case. Any solution?

Same issue here. Any resolution? I might log to MS premier support if not.

Microsoft has fixed it since version 104 of Edge

What specific version of Edge 104? Is there a link from MS acknowledging this issue? Cant find mention of it in the Edge releases notes/fixes.