So I'm having this trouble with FancyBox where when the body of the page (main page) is being scrolled, the box shifts position to the left and top randomly.
Attached a GIF to demonstrate the issue:
I'm using Fancybox v2 as far as I know.
The website is here (under the "daily training tab").
This is the code I use to call the fancybox:
$(".signup").fancybox({
maxWidth: 800,
maxHeight: 600,
fitToView: false,
width: '70%',
height: '70%',
autoSize: false,
closeClick: false,
openEffect: 'none',
closeEffect: 'none'
});
I have checked their API but couldn't understand what makes the position to "dance".
===============
EDIT
So I managed to isolate the problem. when I add the "openEffect: 'none' " the thing goes wild. without it the box stays static and sticks to the top left side of screen
any further ideas ?