How to adjust iframe height of an atlassian connect add on

how can i resize my iframe to 100% height?

=> AP.resize(‘100%’,100%’) this does not work for the height value of course

i would like to have the iframe as big as possible, that there is no unused space and no scroll bars applied. therefore i need to know the height of my parent window. but this value is not accessible due to same origin policy.

  1. is there a way to obtain the parent window hight or
  2. is there a way to resize the parent window to maximum height: AP.resize(width, ‘100%’)?

what type of module are you doing? If you’re doing a Page - you can specify the sizeToParent attribute. See for more details.

1 Like