MortenS
MortenS

Reputation: 43

Office.js add-in display dialog dynamic size

I am making an add-in for outlook with dialogues using the displayDialogAsync method.

The problem is that if the main window has a small size the dialog will also be small, because the width and height is a percentage of the main window, and the content will not fit.

Is it possible to know the size of the main window, so I can use that to calculate how big the dialog should be?

I have tried with $(window).height() and $(window).width() but that returns the height and width of the box the add-in buttons are located in.

Upvotes: 0

Views: 272

Answers (1)

user7823505
user7823505

Reputation:

The display dialog only supports percentages, and the feature you requested is currently not part of the product. We track Outlook add-in feature requests on our user-voice page.

It looks like the feature you want has been requested by others already. Please upvote the existing request. Feature requests on user-voice are considered when we go through our planning process.

Upvotes: 1

Related Questions