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 Sep 9, 2014
1 parent 50f36a1 commit fb44c7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bespoke-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports = function(options) {
},

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

Expand Down

0 comments on commit fb44c7a

Please sign in to comment.