for text use max-height to trim whitespace

This commit is contained in:
Morris Jobke 2016-07-04 17:38:26 +02:00
parent 2e5e0c157d
commit dd337597b3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
var $textPreview = $('<pre/>').text(content);
$thumbnailDiv.children('.stretcher').remove();
$thumbnailDiv.append($textPreview);
$thumbnailContainer.height(previewHeight);
$thumbnailContainer.css("max-height", previewHeight);
}, function () {
fallback();
});