Facebook Canvas remove outer scrolling
I am trying to remove the outer scrolling of a Facebook canvas while keeping the inner scrolling of an Iframe I have.
I tried using FB.Canvas.setSize () and FB.Canvas.setAutoGrow (), I also tried with height and no fluid. while auto-growth does remove scrolling, it actually overlaps my FB app's internal scrolling which I need to keep my title static.
I also know that it is not possible to change the outer css frame this way: the hidden one will not work for the outer frame, and for the inner one it negates what I am trying to achieve.
Is there a way to remove just the outer scroll or make the canvas inherit my iframe height?
UPDATE I found something that works, but it's not that pretty. I'm running an interval every X seconds to push the scrollbar up something like:
FB.Canvas.setSize({
height: angular.element('body').height()
});
$interval(function () {
FB.Canvas.scrollTo(0, 0);
}, 100);
it solves my problem but is by no means an elegant solution ... still looking for something better
source to share
No one has answered this question yet
Check out similar questions: