Addition vertical scrollbar started to appear

Hi
Did anyone observed vertical iframe scroll even when iframe content is very small?
The effect looks as follows:


The htmldocument has height much smaller than available size of the iframe and yet, there is vertical scroll bar that allows to move the iframe by around 5 pixels.
The code used for the jira page is:

"jiraProjectPages": [
            {
                "url": "myBoardUrl?projId={project.id}&projKey={project.key}",
                "iconUrl": "/img/icon.svg",
                "weight": 100,
                "name": {
                    "value": "appName"
                },
                "key": "appNameKey"
            }
        ],

To size the iframe I use code:

window.onload = function() {
    AP.sizeToParent();
}

If I use following line:

window.onload = function() {
    console.log("resizing ...")
    AP.resize('100%', '99%');
}

Then there is no vertical scroll bar initially, but any shrink of the windows make it to appear.
If instead of 99% I’ll put there 100%, then the verticall scroll bar is there from the beginning.
I’ve also tried with “data-options="sizeToParent:true;hideFooter:true” parameters when all.js is loaded and no other AP.resize/size calls - the same effect.

Looks little bit similar like the problem in question “sizeToParent” general pages once again have the wrong height - Confluence Development / Confluence Cloud - The Atlassian Developer Community just this is in Jira. I saw this in Edge and in Chrome.

I’m pretty sure the problem was not here some time ago (a week or two).

Any idea how to make it work correctly?

1 Like