Merge pull request #3637 from virtuacoplenny/lenny/floor-tile-sizes

fix(tile-view): thumbnail videos should cover entire thumbnail
This commit is contained in:
virtuacoplenny 2018-11-30 08:14:17 -08:00 committed by GitHub
commit 5292d14412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -301,10 +301,11 @@ const Filmstrip = {
const initialWidth = viewWidth / columns; const initialWidth = viewWidth / columns;
const aspectRatioHeight = initialWidth / tileAspectRatio; const aspectRatioHeight = initialWidth / tileAspectRatio;
const heightOfEach = Math.min( const heightOfEach = Math.floor(Math.min(
aspectRatioHeight, aspectRatioHeight,
viewHeight / visibleRows); viewHeight / visibleRows
const widthOfEach = tileAspectRatio * heightOfEach; ));
const widthOfEach = Math.floor(tileAspectRatio * heightOfEach);
return { return {
localVideo: { localVideo: {