summaryrefslogtreecommitdiffstats
path: root/apps/files/js/mainfileinfodetailview.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-25 16:58:56 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-09-29 13:07:08 +0200
commit222a4bd4ac7c3d0ce76564a3f0cad9237d121b87 (patch)
tree500c8d2229e5b54925d2b67797ae3e28c4d26195 /apps/files/js/mainfileinfodetailview.js
parentf41a38ba1510e65be675834aefe5b57368b119dd (diff)
downloadnextcloud-server-222a4bd4ac7c3d0ce76564a3f0cad9237d121b87.tar.gz
nextcloud-server-222a4bd4ac7c3d0ce76564a3f0cad9237d121b87.zip
Scale portrait images correctly
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r--apps/files/js/mainfileinfodetailview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js
index c15b1fb2d63..7f2528737d5 100644
--- a/apps/files/js/mainfileinfodetailview.js
+++ b/apps/files/js/mainfileinfodetailview.js
@@ -186,7 +186,7 @@
// when we dont have a preview we show the mime icon in the error handler
$iconDiv.css({
'background-image': 'url("' + previewUrl + '")',
- height: (isLandscape(img) && targetHeight > smallPreviewSize)? 'auto': targetHeight
+ height: (targetHeight > smallPreviewSize)? 'auto': targetHeight
});
}.bind(this),
error: function () {