From 565c8b13faf4e7006279804554aa6072c728e14f Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 15 Nov 2022 23:57:39 +0100 Subject: [PATCH] Better solution for #678 --- dev/Common/Html.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 66a7f647a..be4b54335 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -233,8 +233,9 @@ export const if (hasAttribute('width')) { if (!value) { value = getAttribute('width'); + value = value.includes('%') ? value : value + 'px'; if (1 < pInt(value)) { - value = oStyle.width = value.includes('%') ? value : value + 'px'; + oStyle.width = value; } } delAttribute('width');