English 中文(简体)
FB App . scroll bars show when page is under 520px range
原标题:FB App .. scroll bars showing when page is less than 520px wide

我有多种手法,而且有一个问题。 它使超过520px条,使滚动条形形形形色色,尽管我的所有内容都适合屏幕上(你滚动时的平白空间)。 我已经把我的剪切和情况翻了一倍,似乎与另一个正确无误的 app一样。 任何建议?

这里与给我这一问题的同感。

https://www.facebook.com/slp.cc#!/slp.cc?sk=app_195351823894125

如果你看上2012年雪表,就会cor。

问题回答

I had a similar problem and changed the css of body! Just try to do the following and change the numbers u need:

position:relative; top:-5px; left:-5px, width:520px,

您可尝试使用FB.Canvas.setAutoResize()。 它将消除横向和纵向的隔.。

参看以下简称:

<body onload="sizeChangeCallback()">

<div id="fb-root">
    </div>

    <script>
        window.fbAsyncInit = function() {
            FB.init({
                appId:  YOUR APP ID ,
                status: true, // check login status
                cookie: true, // enable cookies to allow the server to access the session
                xfbml: true, // parse XFBML
                oauth: true
            });
            FB.Canvas.setAutoResize(); //set size according to iframe content size           
        };       

        (function() {
            var e = document.createElement( script );
            e.src = document.location.protocol +  //connect.facebook.net/en_US/all.js ;
            e.async = true;
            document.getElementById( fb-root ).appendChild(e);
        } ());

        function sizeChangeCallback() {
            FB.Canvas.setAutoResize();
        }

    </script>

如果雕像仍然存在,你将人体的外溢风格定为隐蔽。

EX:<上风=“流:隐蔽”;上载=“sizeChangeCallback()”></上;





相关问题
how to detect Android ListView Scrolling stopped?

I m trying to do something after scrolling stopped.So, I tried using OnScrollListener#onScrollStateChanged(SCROLL_STATE_IDLE) to detect when the scrolling stopped(either TOUCH_SCROLL or FLING)(at 1.5 ...

jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

Scrolling to the bottom of a div

As part of an ajax chat room (using prototype framework) I am working on I scroll the user to the bottom each time a message is added using the below js. However if the user has scrolled up and the ...

Displaying news with javascript

I keep coming up against this issue. Displaying news on a website. And I d like to come up with a solution to use like a template, something I can just drop on a site easily. The solution I keep ...

UITextview content moves up when textview is selected

I am pretty new to this iPhone dev thing but so far I have built a pretty good app but I have stumbled into this problem that for the life of me I cannot seem to solve. Basically the app is a chat ...

热门标签