Reputation: 31
I'm having a problem with the canvas height in my app. I've got it set to FB.Canvas.setAutoGrow(); but when I'm loading a page into a div via ajax, it's not picking up the canvas height.
What happens is if the page I'm loading is quite long, then I load a page into the same div which is smaller, the canvas height stays the same as the larger page. It's not resizing the scrollbars to fit the smaller page.
Any help would be appreciated.
Upvotes: 3
Views: 2431
Reputation: 73984
i just had the same problem, FB.Canvas.setAutoGrow() did not work. in the end it was a weird problem, i had a javascript variable named "name". renamed it to "username" and now it works perfectly fine. the rest did not show any error and my code worked without any problems, only the resizing did not work while i had "name". so maybe you should also just try to rename variables and/or functions...
Upvotes: 1