Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Fix fancybox to respect parent option with overlay
Browse files Browse the repository at this point in the history
fix for bug #556
  • Loading branch information
zzzzBov committed Mar 20, 2013
1 parent 6208e12 commit 562eb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/jquery.fancybox.js
Expand Up @@ -1708,7 +1708,7 @@
this.close();
}

this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( 'body' );
this.overlay = $('<div class="fancybox-overlay"></div>').appendTo( F.coming.parent );
this.fixed = false;

if (opts.fixed && F.defaults.fixed) {
Expand Down Expand Up @@ -1980,4 +1980,4 @@
});
});

}(window, document, jQuery));
}(window, document, jQuery));

0 comments on commit 562eb1b

Please sign in to comment.