Merge pull request #3637 from virtuacoplenny/lenny/floor-tile-sizes
fix(tile-view): thumbnail videos should cover entire thumbnail
This commit is contained in:
commit
5292d14412
|
@ -301,10 +301,11 @@ const Filmstrip = {
|
|||
const initialWidth = viewWidth / columns;
|
||||
const aspectRatioHeight = initialWidth / tileAspectRatio;
|
||||
|
||||
const heightOfEach = Math.min(
|
||||
const heightOfEach = Math.floor(Math.min(
|
||||
aspectRatioHeight,
|
||||
viewHeight / visibleRows);
|
||||
const widthOfEach = tileAspectRatio * heightOfEach;
|
||||
viewHeight / visibleRows
|
||||
));
|
||||
const widthOfEach = Math.floor(tileAspectRatio * heightOfEach);
|
||||
|
||||
return {
|
||||
localVideo: {
|
||||
|
|
Loading…
Reference in New Issue