fixes small issue with the image layout when viewing media folder, in some cases when there are consecutive small images that when placed beside each other cannot fit the width, they'll end up individually on a row due to their small size, this fix allows for a leniency when fitting to the width so in these cases they'll get rendered together on the row even though they won't actually fit.
This commit is contained in:
@@ -195,8 +195,12 @@ function umbPhotoFolderHelper($compile, $log, $timeout, $filter, imageHelper, me
|
||||
//if there is only one image, then return the target height
|
||||
return targetHeight;
|
||||
}
|
||||
else if (currRowWidth / targetRowWidth > 0.90) {
|
||||
//it's close enough, it's at least 90% of the width so we'll accept it with the target height
|
||||
return targetHeight;
|
||||
}
|
||||
else {
|
||||
//if it's not successful, return false
|
||||
//if it's not successful, return null
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user