开发者

Why Facebook's .setSize() can only increase the height of Canvas app?

开发者 https://www.devze.com 2023-02-04 06:19 出处:网络
I am trying to adjust the height of my Facebook Canvas app after dynamic update of the page content. One is supposed to do this with FB.Canvas.setSize() however it only increases the hei开发者_开发技巧

I am trying to adjust the height of my Facebook Canvas app after dynamic update of the page content. One is supposed to do this with FB.Canvas.setSize() however it only increases the hei开发者_开发技巧ght. The same thing with .setAutoResize(). I have posted a workaround on SO, but it is too blinky. Can one improve it somehow?

How to resize Facebook Canvas app (iFrame) correctly?


You will need to use the new FB.Canvas.setAutoGrow as the .setAutoResize() is deprecated. See https://developers.facebook.com/docs/reference/javascript/FB.Canvas.setAutoGrow/

0

精彩评论

暂无评论...
验证码 换一张
取 消