Fixed: ImageWidget style attribute

This commit is contained in:
andystrobel 2015-11-12 19:15:47 +01:00
parent 084b9b676c
commit b2d57bcf8c
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,9 @@ use yii\helpers\Html;
'space' => $space,
'width' => 40,
'link' => true,
'htmlOptions' => [
'style' => 'margin-bottom: 5px;',
],
'linkOptions' => [
'class' => 'tt',
'data-toggle' => 'tooltip',

View File

@ -116,7 +116,7 @@ class Image extends Widget
$borderRadius = 2;
}
return "font-size: " . $fontSize . "px; padding: " . $padding . "px 0; border-radius: " . $borderRadius . "px";
return "font-size: " . $fontSize . "px; padding: " . $padding . "px 0; border-radius: " . $borderRadius . "px;";
}