mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Resolve #184
This commit is contained in:
parent
32ce016af2
commit
99d7e5f0f1
1 changed files with 6 additions and 1 deletions
|
|
@ -497,7 +497,7 @@ abstract class HtmlUtils
|
|||
|
||||
if (\count($aStyles))
|
||||
{
|
||||
$sStyles .= $sStyles . '; ' . \implode('; ', $aStyles);
|
||||
$sStyles .= '; ' . \implode('; ', $aStyles);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -514,6 +514,11 @@ abstract class HtmlUtils
|
|||
else if ('table' === $sTagNameLower && $oElement->hasAttribute('width'))
|
||||
{
|
||||
$aAttrsForRemove[] = 'width';
|
||||
$sWidth = $oElement->getAttribute('width');
|
||||
if (\ctype_digit($sWidth)) {
|
||||
$sWidth .= 'px';
|
||||
}
|
||||
$sStyles .= "; max-width:{$sWidth}";
|
||||
}
|
||||
|
||||
if ($oElement->hasAttributes() && isset($oElement->attributes) && $oElement->attributes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue