1

Setting up the initial size for an Office.js content Add-in is simple using its manifest's DefaultSettings.

  <DefaultSettings>
    <RequestedWidth>700</RequestedWidth>
    <RequestedHeight>476</RequestedHeight>
  </DefaultSettings>

I know that these add-ins can be resized manually by the user later on, but can you set the width and height of a content add-in programmatically after it is initialized?

1 Answer 1

1

The RequestedWidth and RequestedHeight can be set only through manifest. Office.js API doesn't provide functionality to resize programmatically content window. As you notice correctly user able to resize add-in window after invoking.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.