diff --git a/js/demo/demo.js b/js/demo/demo.js
index <HASH>..<HASH> 100644
--- a/js/demo/demo.js
+++ b/js/demo/demo.js
@@ -250,10 +250,9 @@ $(function () {
           top: coordinates.y * pixelRatio,
           sourceWidth: coordinates.w * pixelRatio,
           sourceHeight: coordinates.h * pixelRatio,
-          minWidth: result.width(),
-          maxWidth: result.width(),
+          maxWidth: result.width() * pixelRatio,
+          contain: true,
           pixelRatio: pixelRatio,
-          downsamplingRatio: 0.5
         })
       )
       coordinates = null
Demo: take pixelRatio into account when cropping.

Use contain:true instead of specifying both minWidth and maxWidth.
Remove unnecessary downsamplingRatio option for cropping.