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

Commit f238ea1

Browse files
committed
Update jquery.fancybox.js
Page has include <object> tag, run $(this).css('position') will be error.
1 parent ec9c465 commit f238ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/jquery.fancybox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@
18291829
beforeShow : function(opts, obj) {
18301830
if (obj.locked && !this.el.hasClass('fancybox-lock')) {
18311831
if (this.fixPosition !== false) {
1832-
$('*').filter(function(){
1832+
$('*:not(object)').filter(function(){
18331833
return ($(this).css('position') === 'fixed' && !$(this).hasClass("fancybox-overlay") && !$(this).hasClass("fancybox-wrap") );
18341834
}).addClass('fancybox-margin');
18351835
}

0 commit comments

Comments
 (0)