From a5a197e376be4c8477890cdc01d79887259ef949 Mon Sep 17 00:00:00 2001 From: luejerry Date: Wed, 8 Jan 2020 02:44:19 -0800 Subject: [PATCH] Fix view modes can change image aspect ratio --- mangareader/scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mangareader/scripts.js b/mangareader/scripts.js index dcb7ab1..d8a14a9 100644 --- a/mangareader/scripts.js +++ b/mangareader/scripts.js @@ -93,18 +93,21 @@ Object.assign(img.style, { width: `${width}px`, maxWidth: null, + maxHeight: null, }); break; case widthClamp.shrink: Object.assign(img.style, { width: null, maxWidth: `${width}px`, + maxHeight: null, }); break; default: Object.assign(img.style, { width: null, maxWidth: null, + maxHeight: null, }); } }