From dd337597b35b1fc70441e271a3eb560385da18a6 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 4 Jul 2016 17:38:26 +0200 Subject: [PATCH] for text use max-height to trim whitespace --- apps/files/js/sidebarpreviewtext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/sidebarpreviewtext.js b/apps/files/js/sidebarpreviewtext.js index de264ed1e5..5af17bd555 100644 --- a/apps/files/js/sidebarpreviewtext.js +++ b/apps/files/js/sidebarpreviewtext.js @@ -29,7 +29,7 @@ var $textPreview = $('
').text(content);
 				$thumbnailDiv.children('.stretcher').remove();
 				$thumbnailDiv.append($textPreview);
-				$thumbnailContainer.height(previewHeight);
+				$thumbnailContainer.css("max-height", previewHeight);
 			}, function () {
 				fallback();
 			});