Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,414,273
Community Members
 
Community Events
170
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