Setting heigth/width of custom modal

Custom modal - both height and width can be changed. The minimum height is 120px and the minimum width is 320px . The maximum height and width are limited to the user’s browser dimensions.

Currently, I’m resizing the modal using the following code snippet:

const sdk = await new AppExtensionsSDK().initialize({ size: { height: 700, width: 800 } });

However, a drawback of this approach is that the modal’s size may not adequately fill larger screens, leading to a small display, or conversely, occupy only a portion of smaller screens.

Is there a way to set the width/heigth to - lets say 80% of the screen?
Thanks :slight_smile:

1 Like

Hi,

It’s not possible to set the size of the modal relative to the proportions of the user screen, as indeed, currently, the set limit is strictly fixed to 800x700px.

But I’ll send this feedback to the rest of our team and let you know here if there is something we are planning to improve in the future.

Have a nice day!

1 Like

This topic was automatically closed after 60 days. New replies are no longer allowed.