Procházet zdrojové kódy

Resizes large video on filmstrip toggle.

master
damencho před 9 roky
rodič
revize
97733cd17a
2 změnil soubory, kde provedl 9 přidání a 5 odebrání
  1. 4
    1
      modules/UI/UI.js
  2. 5
    4
      modules/UI/videolayout/VideoLayout.js

+ 4
- 1
modules/UI/UI.js Zobrazit soubor

@@ -276,7 +276,10 @@ function registerListeners() {
276 276
 
277 277
     UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
278 278
 
279
-    UI.addListener(UIEvents.TOGGLE_FILM_STRIP, UI.toggleFilmStrip);
279
+    UI.addListener(UIEvents.TOGGLE_FILM_STRIP, function () {
280
+        UI.toggleFilmStrip();
281
+        VideoLayout.resizeVideoArea(PanelToggler.isVisible(), true, true);
282
+    });
280 283
 }
281 284
 
282 285
 /**

+ 5
- 4
modules/UI/videolayout/VideoLayout.js Zobrazit soubor

@@ -804,10 +804,11 @@ var VideoLayout = {
804 804
      * @param forceUpdate indicates that hidden thumbnails will be shown
805 805
      * @param completeFunction a function to be called when the video area is
806 806
      * resized.
807
-     */resizeVideoArea (isSideBarVisible,
808
-                        forceUpdate = false,
809
-                        animate = false,
810
-                        completeFunction = null) {
807
+     */
808
+    resizeVideoArea (isSideBarVisible,
809
+                    forceUpdate = false,
810
+                    animate = false,
811
+                    completeFunction = null) {
811 812
 
812 813
         if (largeVideo) {
813 814
             largeVideo.updateContainerSize(isSideBarVisible);

Načítá se…
Zrušit
Uložit