Skip to content

Commit

Permalink
Applied fix to _adjustBG() to stop image jumping during transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
vondruska committed Oct 31, 2011
1 parent 9efe69b commit 282c07c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.backstretch.js
Expand Up @@ -103,7 +103,7 @@
if(settings.centeredX) $.extend(bgCSS, {left: "-" + bgOffset + "px"});
}

$("#backstretch, #backstretch img").width( bgWidth ).height( bgHeight )
$("#backstretch, #backstretch img:not(.deleteable)").width( bgWidth ).height( bgHeight )
.filter("img").css(bgCSS);
} catch(err) {
// IE7 seems to trigger _adjustBG before the image is loaded.
Expand All @@ -115,4 +115,4 @@
}
};

})(jQuery);
})(jQuery);

0 comments on commit 282c07c

Please sign in to comment.