Skip to content

Commit

Permalink
Refresh slide dimensions refs after each resize
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Apr 23, 2014
1 parent e54cebe commit 1697145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bespoke-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
},

scaleAll = function() {
slideHeight = firstSlide.offsetHeight;
slideWidth = firstSlide.offsetWidth;
var xScale = parent.offsetWidth / slideWidth,
yScale = parent.offsetHeight / slideHeight;

Expand Down

0 comments on commit 1697145

Please sign in to comment.