none
iFrame resize doesn't work when chrome turned off

    Question

  • Hi,

    The postMessage for resizing an app's container iframe breaks the host page when the calling app's chrome is turned off. The line that is failing on the host is:

    document.getElementById(webPartDivId + '_ChromeTitle').style.cssText = widthCssText;

    Looks for a div that doesn't exist when no chrome enabled so there is a null evaluation failure.

    Wednesday, November 21, 2012 10:35 PM

Answers

  • Thank you Mark. This is indeed a bug with the product. It has already been fixed and customers will get the fix once SharePoint goes into General Availability early next year.

    The only work around at the moment is to always have a chrome on the part (or don't resize it)


    Program Manager, Office Developer Platform.

    Wednesday, November 21, 2012 11:30 PM
    Moderator