Skip to content

Commit

Permalink
Fixed iPad height issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Aug 16, 2011
1 parent 451723f commit fcb8ee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jquery.backstretch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* jQuery Backstretch
* Version 1.2.1
* Version 1.2.2
* http://srobbin.com/jquery-plugins/jquery-backstretch/
*
* Add a dynamically-resized background image to the page
Expand Down Expand Up @@ -100,7 +100,8 @@
if(settings.centeredX) $.extend(bgCSS, {left: "-" + bgOffset + "px"});
}

$("#backstretch img:last").width( bgWidth ).height( bgHeight ).css(bgCSS);
$("#backstretch, #backstretch img:last").width( bgWidth ).height( bgHeight )
.filter("img").css(bgCSS);
} catch(err) {
// IE7 seems to trigger _adjustBG before the image is loaded.
// This try/catch block is a hack to let it fail gracefully.
Expand Down
4 changes: 2 additions & 2 deletions jquery.backstretch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcb8ee8

Please sign in to comment.