From 3ed1872c4400f2ef1dcead66ba9a5ba3cba123ed Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sat, 23 Apr 2022 11:47:00 +0200 Subject: [PATCH] Bugfix width attribute as found in #343 --- 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 83c014859..06dca78b9 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -176,7 +176,8 @@ export const // if ('TABLE' === name || 'TD' === name) { if (hasAttribute('width')) { - oStyle.width = getAttribute('width'); + value = getAttribute('width'); + oStyle.width = value.includes('%') ? value : value + 'px'; delAttribute('width'); } value = oStyle.width;