From 24a6ae4e327b42afce81c05948cfa1b2da2c085b Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 8 Aug 2014 12:00:30 -0600 Subject: [PATCH] Fixes: U4-4634 Image preview in Media is stretched --- .../src/common/services/util.service.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/util.service.js b/src/Umbraco.Web.UI.Client/src/common/services/util.service.js index 4505b008ad..5d6291f6ff 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/util.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/util.service.js @@ -208,18 +208,6 @@ function umbPhotoFolderHelper($compile, $log, $timeout, $filter, imageHelper, me for (var i = 0; i < imgs.length; i++) { //get the lower width to ensure it always fits var scaledWidth = Math.floor(this.getScaledWidth(imgs[i], imageRowHeight.height)); - - //in this case, a single image will not fit into the row so we need to crop/center - // width the full width and the min display height - if (imageRowHeight.imgCount === 1) { - sizes.push({ - width: targetWidth, - //ensure that the height is rounded - height: Math.round(minDisplayHeight) - }); - row.images.push(imgs[i]); - break; - } if (currRowWidth + scaledWidth <= targetWidth) { currRowWidth += scaledWidth;