When it comes to add-ins on the Outlook for Windows 10 desktop app, the use of an Edge-based HTML renderer is key. Attempting to open a popup with the window.open() command can be a bit tricky, as exhibited in the code snippet below:
var popupDimensions = "height=800,width=600";
var link = 'https://same-domain-of-addin.com/some/page';
window.open(link, null, [
popupDimensions,
"resizable",
"scrollbars",
"location",
"status",
"menubar"
].join(','));
While this opens a new Edge-based popup dialog, it falls short of fully honoring certain flags:
- "resizable" -> I can resize the edges, but the maximize button is missing
- "popupDimensions" -> Height and width constraints are not respected. It tends to open at about 50% of my screen's size (considering a screen resolution of 1280x720)
Is there a workaround to achieve the following properties in the popup window? (listed in order of preference):
- Display the maximize button
- Maximize the window by default
- Utilize the default browser
- Set specific window dimensions upon opening