Skip to content

Commit

Permalink
update version numbers and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Provost committed Jun 17, 2016
1 parent 5469e1e commit 3cd0da0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-backstretch",
"version": "v0.1.2-beta",
"version": "v0.1.3-beta",
"homepage": "https://github.com/rprovost/ng-backstretch",
"authors": [
"Ryan Provost <[email protected]>"
Expand Down
7 changes: 4 additions & 3 deletions dist/ng-backstretch.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ directive('backstretch', ['$window', '$timeout', function($window, $timeout) {
*/
scope.images = Array.isArray(scope.images()) ? scope.images() : [scope.images()];
scope.duration = scope.duration() || 5000;
scope.fade = scope.fade() || 1;
scope.fade = scope.fade() || 0;

// We need at least one image or method name
if (scope.images.length === 0) {
Expand All @@ -46,7 +46,7 @@ directive('backstretch', ['$window', '$timeout', function($window, $timeout) {
height: '100%',
width: '100%',
zIndex: -999998,
position: 'absolute',
position: 'absolute'
},
image: {
position: 'absolute',
Expand Down Expand Up @@ -102,7 +102,8 @@ directive('backstretch', ['$window', '$timeout', function($window, $timeout) {
var root_width = element[0].offsetWidth,
background_width = root_width,

root_height = element[0].offsetHeight,
// Check which height-element that should be used
root_height = element[0].offsetHeight > 0 ? element[0].offsetHeight : element[0].offsetParent.offsetHeight,
background_height = background_width / scope.ratio,

background_offset;
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-backstretch.min.js

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

Loading

0 comments on commit 3cd0da0

Please sign in to comment.