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 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: {
|
||||||
|
|
Loading…
Reference in New Issue