Skip to content

Commit 1c8caa9

Browse files
committed
hack to fix size problems with uploads in polyview
1 parent 0ff3c5b commit 1c8caa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vendor/assets/javascripts/jquery-fileupload/vendor/load-image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
(options.maxHeight || height) / height
178178
);
179179
if (scale < 1) {
180-
width = Math.ceil(width * scale);
181-
height = Math.ceil(height * scale);
180+
width = Math.ceil(width);
181+
height = Math.ceil(height);
182182
}
183183
if (img.getContext || (options.canvas && canvas.getContext)) {
184184
canvas.width = width;

0 commit comments

Comments
 (0)