PiRSquared17 / fancybox

Automatically exported from code.google.com/p/fancybox
0 stars 0 forks source link

in facebook don't work centerOnScroll #112

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
it must be modify

_get_viewport = function() {
            return [
                $(window).width() - (currentOpts.margin * 2),
                $(window).height() - (currentOpts.margin * 2),
                $(document).scrollLeft() + currentOpts.margin,
                $(document).scrollTop() + currentOpts.margin
            ];
        }

it code not get scrollTop. 

Original issue reported on code.google.com by tanriov...@gmail.com on 26 Sep 2011 at 2:22

GoogleCodeExporter commented 9 years ago
Anyone ever solve this?  I know V2 of fancybox doesn't contain a centerOnScroll 
parameter, but it does have a topRatio parameter.

I'm having the same problem within Facebook, where the fancybox would center on 
a vertically long page when the user is only at the top and can only see maybe 
1/8 of the full page...

Original comment by l...@filmdemic.com on 11 Jan 2012 at 4:58