Fix thumbnail not filling entire space sometimes (#6709)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2018-03-09 11:33:05 +01:00
1 parent 675b8fea53
commit 11697d6894
1 file changed
+6 -4
@@ -168,11 +168,13 @@ class Item extends React.PureComponent {
}
if (originalWidth > originalHeight) {
imageStyle.height = '100%';
imageStyle.width = 'auto';
imageStyle.height = '100%';
imageStyle.width = 'auto';
imageStyle.minWidth = '100%';
} else {
imageStyle.height = 'auto';
imageStyle.width = '100%';
imageStyle.height = 'auto';
imageStyle.width = '100%';
imageStyle.minHeight = '100%';
}
imageStyle.top = vShift;