瀏覽代碼

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.
master
Leonard Kim 7 年之前
父節點
當前提交
a1ef845663
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4
    3
      modules/UI/videolayout/Filmstrip.js

+ 4
- 3
modules/UI/videolayout/Filmstrip.js 查看文件

@@ -301,10 +301,11 @@ const Filmstrip = {
301 301
         const initialWidth = viewWidth / columns;
302 302
         const aspectRatioHeight = initialWidth / tileAspectRatio;
303 303
 
304
-        const heightOfEach = Math.min(
304
+        const heightOfEach = Math.floor(Math.min(
305 305
             aspectRatioHeight,
306
-            viewHeight / visibleRows);
307
-        const widthOfEach = tileAspectRatio * heightOfEach;
306
+            viewHeight / visibleRows
307
+        ));
308
+        const widthOfEach = Math.floor(tileAspectRatio * heightOfEach);
308 309
 
309 310
         return {
310 311
             localVideo: {

Loading…
取消
儲存