소스 검색

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

Loading…
취소
저장