From 3e99f760a450e473f598057e5969d3a5a30ecc10 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 20 Feb 2023 11:25:20 +0100 Subject: [PATCH] Resolve #953 --- dev/Common/Html.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index bb2ff7f0d..fb0764543 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -363,10 +363,12 @@ export const oStyle.width = value.includes('%') ? value : value + 'px'; delAttribute('width'); } - value = oStyle.removeProperty('width'); + value = oStyle.width; if (parseInt(value,10) && !oStyle.maxWidth) { oStyle.maxWidth = value; oStyle.width = '100%'; + } else if (!value?.includes('%')) { + oStyle.removeProperty('width'); } // Make height responsive if (hasAttribute('height')) {