N°3670 Revert tooltip preview behavior back to 2.7 one

This commit is contained in:
Stephen Abello
2021-02-15 15:18:47 +01:00
parent eea8ceda63
commit 789ee8e2d1

View File

@@ -512,8 +512,8 @@ class TableDetailsAttachmentsRenderer extends AbstractAttachmentsRenderer
if ($oDoc->GetSize() <= self::MAX_SIZE_FOR_PREVIEW)
{
$sAttachmentThumbUrl = $sDocDownloadUrl;
$sPreviewMarkup = utils::HtmlEntities('<img src="'.$sAttachmentThumbUrl.'" style="max-width: '.$iMaxWidth.'"/>');
}
$sPreviewMarkup = utils::HtmlEntities('<img src="'.$sDocDownloadUrl.'" style="max-width: '.$iMaxWidth.'"/>');
}