Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,234
Community Members
 
Community Events
168
Community Groups

Modal width no longer honors size field

Edited
Sudhir I'm New Here Aug 08, 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