fix(tile-view): thumbnail videos should cover entire thumbnail

Video elements may have problems scaling to cover pixel fractions,
so there could be a 1px black border line displaying in the
thumbnail. It's most visible in tile view. Flooring the sizing
calculations hides the border.
This commit is contained in:
Leonard Kim 2018-11-28 13:36:12 -08:00
parent 1ba66e4b65
commit a1ef845663
1 changed files with 4 additions and 3 deletions

View File

@ -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: {