I'm currently using the postMessage function to set the width of my app part which is working however I've got a few issues with height.
The height is set using
$('.container').outerHeight(true);
which would be fine except this value is generated before the app part is resized, therefore the height returned is whatever it would be at 300px (give or take) wide, rather than the full width of the page. This results in the app part being about twice as high as it needs to be.
Is there anyway around this? I have seen the following style recommended
iframe {
width: 100%;
}
however this doesn't seem to have any effect.
Are there any solutions to this? Thanks.