Fix preview

[MAILPOET-2600]
This commit is contained in:
Pavel Dohnal
2020-02-27 13:04:42 +01:00
committed by Jack Kitterhing
parent 61251f6e34
commit f5fc03ee1d
3 changed files with 39 additions and 9 deletions

View File

@@ -115,7 +115,9 @@ class BlockRendererHelper {
public function renderFontStyle(array $formSettings) {
if (isset($formSettings['fontSize'])) {
return 'style="font-size: ' . trim($formSettings['fontSize']) . 'px"';
return 'style="'
. 'font-size: ' . trim($formSettings['fontSize']) . 'px;'
. 'line-height: ' . trim($formSettings['fontSize']) * 1.2 . 'px";';
}
return '';
}