mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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%';
|
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
|
// } else
|
||||||
if ('A' === name) {
|
if ('A' === name) {
|
||||||
value = oElement.href;
|
value = oElement.href;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue