0

My app part doesn't support responsiveness height and width.

I have tried to set height using app, but it's not working.

So how can I make App part responsive

Here is some view source of App part

enter image description here

3
  • Have you tried a resize event on the page with alters the Iframes inline styles Feb 9, 2017 at 9:01
  • No not yet. do you any something in mind Feb 9, 2017 at 9:30
  • Hmm.. let me think.. as they are inline styles you can never target them with higher Specificity CSS or CSS media queries.... [thinking] ... wait... I got it!! Use a window resize event to change the inline width & height style on that IFrame.... Feb 9, 2017 at 10:08

1 Answer 1

2

If the app part is SharePoint OOTB modal then use below javascript

var dlg = SP.UI.ModalDialog.get_childDialog();
if (dlg != null) {
      dlg.autoSize();
}

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.