Jira Iframe height calculating issue

Hi folks, I have got an issue with the iframe and how Jira calculates its size. Here is the basic setup:

<script src="https://connect-cdn.atl-paas.net/all.js" data-options="sizeToParent:true" type="text/javascript"></script>

Unfortunately, the final height for the iframe is a bit higher than it’s needed. In fact, if I remove the div with my app, the iframe’s height is still the same (888px).

I have tried several tricks:

All of them didn’t help.
I am looking for some advice. Sound off in the comments.