fancyapps/fancyBox — Issue #106: fancybox 2 afterClose + afterLoad works weird
Author: dubcanada
Created: 2012-01-19 17:53:32+00:00
State: open

Hello,

I have a fancyBox that gets opened in an iFrame and I have two callbacks, one for afterload and one for afterclose. If I take out the afterclose the callbacks work as expected, if I put in the afterclose callback it gets called when the afterload does.
```
$.fancybox({
'href'	: 'site',
'type'	: 'iframe',
'width'	: '800',
'height'	: '460',
'maxWidth'	: '800',
'maxHeight'	: '460',
'autoSize'	: false,
'fitToView'	: false,
'scrolling'	: false,
'keys'	: '',
'modal'	: true,
'closeBtn'	: true,
'afterLoad'	: function () { $("body").css("overflow","hidden"); },
'afterClose'	: function () { $("body").css("overflow","visible"); }
});
```

When I load it, the body overflow is always set to visible (even though it shouldn't be it should be hidden). If I take out afterclose callback it works as expect (but doesn't remove overflow on close.

- Steve