Skip to content

Commit a880cf7

Browse files
author
Runar Kristoffersen
committed
Round off containerWidth
fixes issue #49
1 parent 914878d commit a880cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Image/Image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Image extends CloudinaryComponent {
120120
containerWidth = Util.width(element);
121121
}
122122
}
123-
return containerWidth;
123+
return Math.round(containerWidth);
124124
};
125125

126126
applyBreakpoints(width, steps, options) {

0 commit comments

Comments
 (0)