From 86e9239a9908e31ecea9346db6f34517b1d52e34 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sat, 23 Apr 2022 12:21:16 +0200 Subject: [PATCH] Resolve #343 --- dev/Common/Html.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 06dca78b9..12ca77115 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -174,7 +174,7 @@ export const let value; -// if ('TABLE' === name || 'TD' === name) { +// if ('TABLE' === name || 'TD' === name || 'TH' === name) { if (hasAttribute('width')) { value = getAttribute('width'); oStyle.width = value.includes('%') ? value : value + 'px'; @@ -183,7 +183,9 @@ export const value = oStyle.width; if (value && !value.includes('%')) { oStyle.maxWidth = value; - oStyle.width = '100%'; + if ('TD' !== name && 'TH' !== name) { + oStyle.width = '100%'; + } } // } else if ('A' === name) {