From 9db1fa74a65bbc388e23436feb664c92a886a116 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 24 Jan 2016 14:39:13 -0500 Subject: [PATCH] fix image scaling --- dashboard-ui/scripts/librarybrowser.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index fe13f148e6..82c61e9b2f 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1885,7 +1885,9 @@ if (primaryImageAspectRatio) { if (uiAspect) { - coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; + if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) { + coverImage = true; + } } } @@ -1968,7 +1970,9 @@ if (primaryImageAspectRatio) { if (uiAspect) { - coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; + if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) { + coverImage = true; + } } } } @@ -1996,7 +2000,9 @@ if (primaryImageAspectRatio) { if (uiAspect) { - coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; + if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) { + coverImage = true; + } } } }