0

Possible Duplicate:
how to dynamically increse the height in facebook app

I am developing flash app for Facebook, fluid layout is best for me except when my user resolution is to small, I wish Facebook had a minimum property for canvas size.

So until they will implement it I wish to change my canvas setting from JavaScript, is it possible to set dynamically my canvas settings size?

Community
  • 1
  • 1
Ilya Gazman
  • 31,250
  • 24
  • 137
  • 216

2 Answers2

0

I don't think so. However you should be able to achieve your desired user experience working with the methods FB.Canvas.setSize and FB.Canvas.setAutoGrow depending on the user resolution.

borisdiakur
  • 10,387
  • 7
  • 68
  • 100
0

I have already answer a similar question here:
how to dynamically increse the height in facebook app

You have to set FB.Canvas.setSize() and later check if canvas loaded with FB.Canvas.setDoneLoading() and in the response you can run the FB.Canvas.setAutoGrow()

An example:

FB.Canvas.setSize({ width: 810, height: 950 });

FB.Canvas.setDoneLoading( function(response) {
    console.log(response.time_delta_ms);
    FB.Canvas.setAutoGrow();
});
Community
  • 1
  • 1
Philip
  • 5,011
  • 2
  • 30
  • 36