mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 07:48:02 +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 (!value) {
|
||||
value = getAttribute('width');
|
||||
value = value.includes('%') ? value : value + 'px';
|
||||
if (1 < pInt(value)) {
|
||||
value = oStyle.width = value.includes('%') ? value : value + 'px';
|
||||
oStyle.width = value;
|
||||
}
|
||||
}
|
||||
delAttribute('width');
|
||||
|
|
Loading…
Reference in a new issue