fix: don't append 'auto px', thats invalid css. Append just 'auto' instead.
This commit is contained in:
parent
186d730468
commit
79eb6c2025
|
@ -166,17 +166,17 @@ EOB;
|
|||
} catch (Exception $e) {
|
||||
$thumbnail = null;
|
||||
}
|
||||
$thumbWidth = $thumbnail ? $thumbnail->width : 'auto';
|
||||
$thumbHeight = $thumbnail ? $thumbnail->height : 'auto';
|
||||
$thumbWidthCss = $thumbnail ? $thumbnail->width.'px' : 'auto';
|
||||
$thumbHeightCss = $thumbnail ? $thumbnail->height.'px' : 'auto';
|
||||
|
||||
$out->elementStart('div', array(
|
||||
'class'=>'attachment-wrapper',
|
||||
'style'=>'height: ' . $thumbHeight . 'px; width: ' . $thumbWidth . 'px;'
|
||||
'style'=>'height: ' . $thumbHeightCss . '; width: ' . $thumbWidthCss . ';'
|
||||
)); /*needs height of thumb*/
|
||||
$out->elementStart('div', array(
|
||||
'class'=>$classes,
|
||||
'onclick'=>'toggleSpoiler(event)',
|
||||
'style'=>'height: ' . $thumbHeight . 'px; width: ' . $thumbWidth . 'px;'
|
||||
'style'=>'height: ' . $thumbHeightCss . '; width: ' . $thumbWidthCss . ';'
|
||||
));
|
||||
$out->raw(' ');
|
||||
$out->elementEnd('div');
|
||||
|
|
Loading…
Reference in New Issue