因此,我有一把镜子,用面板“javascrip sdk”电话打到“Settable”上;和FB.Canvas.setAutoGrow();。 这些都是完美的工作,因为iframe根据其内容被设定为某种高温。
The problem is that when I make a call to Fancybox, it positions itself based on this height. I know that s exactly what its supposed to do as the fancybox jQuery returns the viewport by:
(最新版本jquery.fancy Box-1.3.4.js第673条):
_get_viewport = function() {
return [
$(window).width() - (currentOpts.margin * 2),
$(window).height() - (currentOpts.margin * 2),
$(document).scrollTop() + currentOpts.margin
];
},
But the problem is the iframe will, for a lot of viewers, be longer than their browser window. So the Fancybox centers itself in the iframe and ends up only partly visible to the majority of viewers. (i.e. iframe height is 1058px and users browser is say only 650px).
是否有办法仅仅计算物理浏览器高高的轮胎箱子? 或者,我是否需要在Facebooksvas的记忆中改变某些环境,使之发挥作用?
I like how the only scrollbar is the one on Facebook (the parent, if you will).
All suggestions GREATLY appreciated!