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) {
|
} catch (Exception $e) {
|
||||||
$thumbnail = null;
|
$thumbnail = null;
|
||||||
}
|
}
|
||||||
$thumbWidth = $thumbnail ? $thumbnail->width : 'auto';
|
$thumbWidthCss = $thumbnail ? $thumbnail->width.'px' : 'auto';
|
||||||
$thumbHeight = $thumbnail ? $thumbnail->height : 'auto';
|
$thumbHeightCss = $thumbnail ? $thumbnail->height.'px' : 'auto';
|
||||||
|
|
||||||
$out->elementStart('div', array(
|
$out->elementStart('div', array(
|
||||||
'class'=>'attachment-wrapper',
|
'class'=>'attachment-wrapper',
|
||||||
'style'=>'height: ' . $thumbHeight . 'px; width: ' . $thumbWidth . 'px;'
|
'style'=>'height: ' . $thumbHeightCss . '; width: ' . $thumbWidthCss . ';'
|
||||||
)); /*needs height of thumb*/
|
)); /*needs height of thumb*/
|
||||||
$out->elementStart('div', array(
|
$out->elementStart('div', array(
|
||||||
'class'=>$classes,
|
'class'=>$classes,
|
||||||
'onclick'=>'toggleSpoiler(event)',
|
'onclick'=>'toggleSpoiler(event)',
|
||||||
'style'=>'height: ' . $thumbHeight . 'px; width: ' . $thumbWidth . 'px;'
|
'style'=>'height: ' . $thumbHeightCss . '; width: ' . $thumbWidthCss . ';'
|
||||||
));
|
));
|
||||||
$out->raw(' ');
|
$out->raw(' ');
|
||||||
$out->elementEnd('div');
|
$out->elementEnd('div');
|
||||||
|
|
Loading…
Reference in New Issue