for text use max-height to trim whitespace
This commit is contained in:
parent
2e5e0c157d
commit
dd337597b3
|
@ -29,7 +29,7 @@
|
||||||
var $textPreview = $('<pre/>').text(content);
|
var $textPreview = $('<pre/>').text(content);
|
||||||
$thumbnailDiv.children('.stretcher').remove();
|
$thumbnailDiv.children('.stretcher').remove();
|
||||||
$thumbnailDiv.append($textPreview);
|
$thumbnailDiv.append($textPreview);
|
||||||
$thumbnailContainer.height(previewHeight);
|
$thumbnailContainer.css("max-height", previewHeight);
|
||||||
}, function () {
|
}, function () {
|
||||||
fallback();
|
fallback();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue