Parcourir la source

Resizes large video on filmstrip toggle.

master
damencho il y a 9 ans
Parent
révision
97733cd17a
2 fichiers modifiés avec 9 ajouts et 5 suppressions
  1. 4
    1
      modules/UI/UI.js
  2. 5
    4
      modules/UI/videolayout/VideoLayout.js

+ 4
- 1
modules/UI/UI.js Voir le fichier

276
 
276
 
277
     UI.addListener(UIEvents.TOGGLE_CONTACT_LIST, UI.toggleContactList);
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 Voir le fichier

804
      * @param forceUpdate indicates that hidden thumbnails will be shown
804
      * @param forceUpdate indicates that hidden thumbnails will be shown
805
      * @param completeFunction a function to be called when the video area is
805
      * @param completeFunction a function to be called when the video area is
806
      * resized.
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
         if (largeVideo) {
813
         if (largeVideo) {
813
             largeVideo.updateContainerSize(isSideBarVisible);
814
             largeVideo.updateContainerSize(isSideBarVisible);

Chargement…
Annuler
Enregistrer