P
P
Pavel Osin2014-04-06 12:37:31
Facebook
Pavel Osin, 2014-04-06 12:37:31

How to change iframe tab height in facebook when page is zoomed out?

Good afternoon! I have a tab in facebook from static pages, the height of the pages is fixed. With the standard solution:

window.onload = function() {
      FB.Canvas.setAutoGrow(10);
      }

we managed to increase the height of the tab, only here is one bad luck: each page has a different height (from 690px to 2600px) and when switching to a page with a large height (2400) and then back to a small one (1000), there is a lot of free space under the tab (the difference in height with the tallest page) as if the script didn't work anymore. What is the solution so that when the height decreases, the autoresize works?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Osin, 2014-04-14
@paulo_ozzi

I write the answer myself, maybe it will be useful.

FB.Canvas.setSize({height:600});
setTimeout("FB.Canvas.setAutoGrow()",500);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question