mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-26 08:16:44 +03:00
Improved solution for #343
This commit is contained in:
parent
86e9239a99
commit
9413e491d4
1 changed files with 9 additions and 0 deletions
|
|
@ -187,6 +187,15 @@ export const
|
|||
oStyle.width = '100%';
|
||||
}
|
||||
}
|
||||
if (hasAttribute('height')) {
|
||||
value = getAttribute('height');
|
||||
oStyle.height = value.includes('%') ? value : value + 'px';
|
||||
delAttribute('height');
|
||||
}
|
||||
value = oStyle.removeProperty('height');
|
||||
if (value && !value.includes('%')) {
|
||||
oStyle.maxHeight = value;
|
||||
}
|
||||
// } else
|
||||
if ('A' === name) {
|
||||
value = oElement.href;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue