问题
Is it possible to set the width of a Outlook add-in when it gets loaded up. Right now when I click on my addin button on the ribbon, the task pane shows up on the right with a width of about 437 pixels. I would like to increase that width to something like 820 pixels.
回答1:
The task pane add-in doesn't support to set the width for the panel. You can submit the feedback here if you want the task pane add-in to support this feature.
回答2:
That's right, there is no way to specify the width. Besides, in OWA the pane is not resizable..
As alternative, you can use a "UI-less" button (see functionFile/ExecuteFunction manifest declarations) and call displayDialogAsync API to display a dialog with custom HTML content, and you can specify the size of this dialog when you create it.
来源:https://stackoverflow.com/questions/39275517/setting-width-of-office-add-in-task-pane