I'm using Office.js to display a dialog in an Office add-in. I call the displayDialogAsync function like this:
Office.context.ui.displayDialogAsync(`https://localhost:3000/notification.htmlmessage=${message}&icon=${icon}`,{ height: 10, width: 10, displayInIframe: true },function (asyncResult) {
dialog = asyncResult.value;
dialog.addEventHandler(Office.EventType.DialogMessageReceived, processDialogAlertMessage);});
However, the dialog that appears takes up more space than I specified in the displayDialogAsync options. It looks like it occupies 20% of the parent window height and 50% of the parent window width, even though I set both height and width to 10.
Why is the dialog taking up more space than specified, and how can I fix this issue to make the dialog appear with the intended dimensions?