0

I'm creating an extension for Microsoft Edge, and when I try to open new window with:

        browser.windows.create({url:"preview.html",left:50,top:100,type:"popup",width:800,height:1000});

it opens in fullscreen, and not with dimensions I called browser.windows.create method with.

This method works as it should in Chrome and Firefox.

I have also tried to update window's dimensions in callback of browser.window.create method, but still the same:

browser.windows.create({url:"preview.html",left:left,top:top,type:"popup",width:800,height:1000},function(window){
        browser.windows.update(window.id,{left:left,top:top,width:800,height:1000});
    });
kecman
  • 813
  • 3
  • 14
  • 34

1 Answers1

0

As it states in Supported APIs, specifying position is not supported for windows.update. I guess it doesn't support for windows.create either, or for specifying size.

You may want to raise a bug on Issue Tracker.

Haibara Ai
  • 10,703
  • 2
  • 31
  • 47
  • Did that already here: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9600565/ – kecman Nov 14 '16 at 00:55