We are using fancybox2 for displaying images. Everything works well, but when the larger image is displayed in the fancybox, the page behind scrolls to the top. After closin
My modification, this help me
/* Fancybox */ $('.fancybox').fancybox({ beforeShow: function(){ $("body").css({ "overflow-y": "hidden", "position": "fixed" } ); }, afterClose: function(){ $("body").removeAttr("style"); } });