瀏覽代碼

fix(Filmstrip.js):Make sure the local thumbnail is there before getting the height

j8
yanas 8 年之前
父節點
當前提交
0c08f96755
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/UI/videolayout/Filmstrip.js

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

@@ -444,7 +444,7 @@ const Filmstrip = {
444 444
 
445 445
             promises.push(new Promise(() => {
446 446
                 let { localThumb } = this.getThumbs();
447
-                let height = localThumb.height();
447
+                let height = localThumb ? localThumb.height() : 0;
448 448
                 let fontSize = UIUtil.getIndicatorFontSize(height);
449 449
                 this.filmstrip.find('.indicator').animate({
450 450
                     fontSize

Loading…
取消
儲存