Modal width no longer honors size field

Sudhir August 8, 2022

We have a forge plugin which opens a modal. this was working till 5th August, but now the width of the opened modal no longer uses the size field and open the modal with really less width(shown below).

Height works as expected.

Are there any code changes we need to make after recent changes?

jira-modal.JPG

 

Code snippet:

const openModal = () => {
      const modal = new Modal({
         resource: 'modal',
         onClose: () => { },
         size: 'xlarge'
      });
      modal.open();

   };

return
<Fragment>
            <div>
               <Button
                  appearance="primary"
                  onClick={openModal}>
                  Add Link
               </Button>
            </div>

 </Fragment>

If we look at the html source, the section element, which we think represents the root of Modal has the right width and height, but the div under it is trimming the width. We cant find a way to adjust the style of that div.

 

The content of the Modal we can see under the iframe.

source.JPG

 

Any help is appreciated. Thanks

 

Update:
So the modal size: large and small work, only xlarge and max are the one's failing

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events