summaryrefslogtreecommitdiffstats
path: root/apps/files/js/sidebarpreviewtext.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/sidebarpreviewtext.js')
-rw-r--r--apps/files/js/sidebarpreviewtext.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/sidebarpreviewtext.js b/apps/files/js/sidebarpreviewtext.js
index de264ed1e56..5af17bd5551 100644
--- a/apps/files/js/sidebarpreviewtext.js
+++ b/apps/files/js/sidebarpreviewtext.js
@@ -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();
});