Skip to content

Parent option completely ignored #556

zzzzBov opened this Issue Mar 20, 2013 · 1 comment

2 participants

zzzzBov commented Mar 20, 2013

If a parent option is specified ( 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')

@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
@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
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.