Skip to content

Parent option completely ignored #556

Closed
zzzzBov opened this Issue Mar 20, 2013 · 1 comment

2 participants

@zzzzBov
zzzzBov commented Mar 20, 2013

If a parent option is specified (http://fancyapps.com/fancybox/#docs) fancybox completely ignores the specified option, and uses $('body') instead.

If a default parent option is specified ($.fancybox.defaults.parent = '#foo'), it's overridden on line 1979 in a document.ready callback:

$.extend(F.defaults, {
    scrollbarWidth : $.scrollbarWidth(),
    fixed  : $.support.fixedPosition,
    parent : $('body')
});

http://jsfiddle.net/ZnKCP/

@zzzzBov zzzzBov added a commit that referenced this issue Mar 20, 2013
@zzzzBov zzzzBov Fix fancybox to respect parent option with overlay
fix for bug #556
562eb1b
@fancyapps fancyapps closed this Jun 14, 2013
@mi2oon mi2oon added a commit that referenced this issue Nov 29, 2013
@mi2oon mi2oon Fixed #556 - Parent option
there was a little typo
d90025c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.