Question:

iFrame Canvas should be 760-pixel wide, but why I see a horizontal scrollbar when displaying a 760-pixel wide picture?

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

Yes, an iFrame application should be 760-pixel wide.

To avoid the horizontal scrollbar in such a case, try change the "IFrame Size" option in the application settings. If that does not work, try to use either of the following methods:

  • use "Show scrollbars" and set the canvas size in your application explicitly via the JavaScript SDK.
  • use "Auto-resize" and call the function Canvas.setAutoResize after initializing the JavaScript SDK.

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!