Ver código fonte

Fixes broken large video resize functionality.

master
paweldomas 10 anos atrás
pai
commit
4cf1f92e25
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5
    5
      modules/UI/videolayout/LargeVideo.js

+ 5
- 5
modules/UI/videolayout/LargeVideo.js Ver arquivo

57
         availableHeight = availableWidth / aspectRatio;
57
         availableHeight = availableWidth / aspectRatio;
58
     }
58
     }
59
 
59
 
60
-    return { availableWidth, availableHeight };
60
+    return [ availableWidth, availableHeight ];
61
 }
61
 }
62
 
62
 
63
 
63
 
106
     }
106
     }
107
 
107
 
108
 
108
 
109
-    return { availableWidth, availableHeight };
109
+    return [ availableWidth, availableHeight ];
110
 }
110
 }
111
 
111
 
112
 /**
112
 /**
239
     }
239
     }
240
 
240
 
241
     resize (containerWidth, containerHeight, animate = false) {
241
     resize (containerWidth, containerHeight, animate = false) {
242
-        let { width, height }
242
+        let [width, height]
243
             = this.getVideoSize(containerWidth, containerHeight);
243
             = this.getVideoSize(containerWidth, containerHeight);
244
         let { horizontalIndent, verticalIndent }
244
         let { horizontalIndent, verticalIndent }
245
             = this.getVideoPosition(width, height,
245
             = this.getVideoPosition(width, height,
251
         this.$avatar.css('top', top);
251
         this.$avatar.css('top', top);
252
 
252
 
253
         this.$wrapper.animate({
253
         this.$wrapper.animate({
254
-            width,
255
-            height,
254
+            width: width,
255
+            height: height,
256
 
256
 
257
             top: verticalIndent,
257
             top: verticalIndent,
258
             bottom: verticalIndent,
258
             bottom: verticalIndent,

Carregando…
Cancelar
Salvar