Facebook Canvas setAutoGrow grows forever in IE

亡梦爱人 提交于 2020-01-15 06:06:08

问题


I am seeing a weird issue in Internet Explorer 9 on my Facebook pagetab when I have setAutoGrow to true. The height grows continuously without end. This is only happening in Internet Explorer for me. Tested with Chrome and Firefox as well.

An example can be found at https://www.facebook.com/GunSweeps/app_480125662005248

Any ideas on what could be the cause? I read another thread on here that suggested it was html, body being set to 100%, and another which said a top-margin was the cause. I'm tried both of these remedies to no avail.

Edit: In more searching, I saw that a global variable might have been the issue, but went through and that does not appear to be the cause either.

Thanks ahead of time for any ideas.


回答1:


May be you can Try

FB.Canvas.setSize();

After all your contents load

or use a simple timer

   var resizetimer= window.setTimeout(function() {
           FB.Canvas.setSize();
       }, 4000);


来源:https://stackoverflow.com/questions/12962374/facebook-canvas-setautogrow-grows-forever-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!