OfficeDev / office-js-docs

[ARCHIVED] Microsoft Office Add-ins API Reference Documentation
https://docs.microsoft.com/javascript/api/overview/office
398 stars 247 forks source link

Dialog is sized as percentage of current window #1457

Closed dmitriyyepishin closed 6 years ago

dmitriyyepishin commented 6 years ago

The docs state that the width parameter "Defines the width of the dialog box as a percentage of the current display." However, actually, the dialog is sized as percentage of the currently active window, not current display.

Article URL

displayDialogAsync documentation

Details on how to reproduce see the issue I filed with Office JS

Rick-Kirkham commented 6 years ago

@dmitriyyepishin I know that what the documentation says was true at one time. In fact, I have an old screen shot with the dialog larger than the host application (which was Word). I will investigate. It might be that behavior varies with the platform (or, less likely, the host). I was using desktop (Click-to-Run, Office 365) Word. Are using desktop Excel or Excel Online? Also, of course, it is possible that Script Lab is dynamically setting the width and height at runtime in a way that disguises the default behavior. I am inquiring with the product team, but in the meantime could you please test with an add-in of your own, instead of Script Lab?

Rick-Kirkham commented 6 years ago

This is being tracked on office-js, so closing this.