Russell Proctor's avatar
Russell Proctor
Brass Contributor
Dec 21, 2021
Status:
New

Allow dialogs to be sized using pixels and not just percentages

When you want to use percentages:

Office.context.ui.displayDialogAsync(url,{ width: 30% , height: 60%})

 

When you want to use a specific number of pixels:

Office.context.ui.displayDialogAsync(url,{ width: 250 , height: 170})

 

Can you please reconsider ?

https://github.com/OfficeDev/office-js/issues/305

 

This request was added to UserVoice but it wasn't migrated across to Tech Community.

officespdev.uservoice.com-34701499-allow-dialogs-to-be-sized-with-pixels-instead

1 Comment

  • clangford's avatar
    clangford
    Copper Contributor

    This would be really helpful as it is currently difficult to get dialogs to match in size between Desktop and Web clients.