From f6ecea42cf7c8ce33e06d6ed10fcf6901b2fe600 Mon Sep 17 00:00:00 2001 From: Anton Ignatov Date: Wed, 17 Apr 2019 18:51:52 +0200 Subject: [PATCH] Remove minimum zoom size --- app/assets/javascripts/sitewide/file_preview.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/assets/javascripts/sitewide/file_preview.js b/app/assets/javascripts/sitewide/file_preview.js index 9ff0b145b..fd4b0cb03 100644 --- a/app/assets/javascripts/sitewide/file_preview.js +++ b/app/assets/javascripts/sitewide/file_preview.js @@ -289,10 +289,6 @@ var FilePreviewModal = (function() { } else { newWidth = parseInt(initWidth, 10) * 0.9; newHeight = parseInt(initHeight, 10) * 0.9; - if (parseInt(imageEditorWindow.dataset.minWidth, 10) > parseInt(newWidth, 10)) { - newWidth = parseInt(imageEditorWindow.dataset.minWidth, 10); - newHeight = parseInt(imageEditorWindow.dataset.minHeight, 10); - } } imageEditorWindow.style.width = newWidth + 'px'; imageEditorWindow.style.height = newHeight + 'px';