From 3b43a8bc782f4386c5d8d79f72847d2ab70a6777 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 26 Jan 2023 20:03:07 +0100 Subject: [PATCH] Resolve #869 --- dev/Common/Html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index dd172b303..084d9950f 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -241,7 +241,7 @@ export const delAttribute('width'); } value = oStyle.removeProperty('width'); - if (value) { + if (value && !oStyle.maxWidth) { oStyle.maxWidth = value; oStyle.width = '100%'; } @@ -252,7 +252,7 @@ export const delAttribute('height'); } value = oStyle.removeProperty('height'); - if (value) { + if (value && !oStyle.maxHeight) { oStyle.maxHeight = value; } }