Skip to content

Commit

Permalink
Add base to parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
BePo65 committed Oct 9, 2021
1 parent 240a8ac commit 753142e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pig.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@

// This is NOT DOM manipulation.
img.style = {
width: parseInt(imageWidth),
height: parseInt(rowHeight),
width: parseInt(imageWidth, 10),
height: parseInt(rowHeight, 10),
translateX: translateX,
translateY: translateY,
transition: transition
Expand All @@ -519,7 +519,7 @@
// Reset our state variables for next row.
row = [];
rowAspectRatio = 0;
translateY += parseInt(rowHeight) + this.settings.spaceBetweenImages;
translateY += parseInt(rowHeight, 10) + this.settings.spaceBetweenImages;
translateX = 0;
}
}.bind(this));
Expand Down

0 comments on commit 753142e

Please sign in to comment.