mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 00:08:18 +08:00
Better solution for #678
This commit is contained in:
parent
b926d86568
commit
565c8b13fa
1 changed files with 2 additions and 1 deletions
|
@ -233,8 +233,9 @@ export const
|
||||||
if (hasAttribute('width')) {
|
if (hasAttribute('width')) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
value = getAttribute('width');
|
value = getAttribute('width');
|
||||||
|
value = value.includes('%') ? value : value + 'px';
|
||||||
if (1 < pInt(value)) {
|
if (1 < pInt(value)) {
|
||||||
value = oStyle.width = value.includes('%') ? value : value + 'px';
|
oStyle.width = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delAttribute('width');
|
delAttribute('width');
|
||||||
|
|
Loading…
Reference in a new issue