mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Resolve #343
This commit is contained in:
parent
3ed1872c44
commit
86e9239a99
1 changed files with 4 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ export const
|
||||||
|
|
||||||
let value;
|
let value;
|
||||||
|
|
||||||
// if ('TABLE' === name || 'TD' === name) {
|
// if ('TABLE' === name || 'TD' === name || 'TH' === name) {
|
||||||
if (hasAttribute('width')) {
|
if (hasAttribute('width')) {
|
||||||
value = getAttribute('width');
|
value = getAttribute('width');
|
||||||
oStyle.width = value.includes('%') ? value : value + 'px';
|
oStyle.width = value.includes('%') ? value : value + 'px';
|
||||||
|
|
@ -183,7 +183,9 @@ export const
|
||||||
value = oStyle.width;
|
value = oStyle.width;
|
||||||
if (value && !value.includes('%')) {
|
if (value && !value.includes('%')) {
|
||||||
oStyle.maxWidth = value;
|
oStyle.maxWidth = value;
|
||||||
oStyle.width = '100%';
|
if ('TD' !== name && 'TH' !== name) {
|
||||||
|
oStyle.width = '100%';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// } else
|
// } else
|
||||||
if ('A' === name) {
|
if ('A' === name) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue