google-code-export / fancybox

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

Positioning is wrong on Chrome and Firefox (OS X) #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a page larger than the viewport
2. Show the fancybox
3.

What is the expected output? What do you see instead?
Expected fb to show in center of viewport, instead it's show in center of the 
page

What version of the product are you using? On what operating system?
1.3.1 on OS X

Please provide any additional information below.

Can be fixed by changing get_viewport:

fancybox_get_viewport = function() {
            var w = $.browser.safari ? 
document.documentElement.clientWidth : $(window).width()
            var h = $.browser.safari ? 
document.documentElement.clientHeight : $(window).height()

            return [w,h, $(document).scrollLeft(), $(document).scrollTop() 
];
},

Original issue reported on code.google.com by jepp...@gmail.com on 25 Mar 2010 at 12:20

GoogleCodeExporter commented 9 years ago
Same issue occurs for Firefox on Fedora

Original comment by karthikm...@gmail.com on 27 Sep 2010 at 5:58