mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 16:07:03 +03:00
Improvement for #184
This commit is contained in:
parent
e2c171f302
commit
ec23b61e14
1 changed files with 5 additions and 3 deletions
|
|
@ -170,9 +170,11 @@ export const
|
||||||
|
|
||||||
else if ('TABLE' === name && hasAttribute('width')) {
|
else if ('TABLE' === name && hasAttribute('width')) {
|
||||||
value = getAttribute('width');
|
value = getAttribute('width');
|
||||||
delAttribute('width');
|
if (!value.includes('%')) {
|
||||||
oStyle.maxWidth = value + (/^[0-9]+$/.test(value) ? 'px' : '');
|
delAttribute('width');
|
||||||
oStyle.removeProperty('width');
|
oStyle.maxWidth = value + 'px';
|
||||||
|
oStyle.removeProperty('width');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ('A' === name) {
|
else if ('A' === name) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue