From f9d70d3dc6d0e87408d723896f90303f60cf3adc Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Tue, 5 Jan 2016 12:24:19 +0100 Subject: [PATCH] Fix audiovideo fullscreen hiding content when in presentation and youtubevieo mode (FS#3072). --- static/js/directives/audiovideo.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/directives/audiovideo.js b/static/js/directives/audiovideo.js index f5b67c93..3ec4bf3e 100644 --- a/static/js/directives/audiovideo.js +++ b/static/js/directives/audiovideo.js @@ -244,8 +244,13 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/ $scope.toggleFullscreen = function() { //console.log("Toggle full screen", BigScreen.enabled, $scope.isActive, $scope.hasUsermedia); + var target = $scope.layoutparent[0]; + // Display whole page in fullscreen when in specific layout modes + if ($scope.layout.presentation || $scope.layout.youtubevideo) { + target = null; + } if (BigScreen.enabled && ($scope.isActive || $scope.hasUsermedia)) { - BigScreen.toggle($scope.layoutparent[0], function() { + BigScreen.toggle(target, function() { // onEnter $scope.layoutparent.addClass("fullscreen"); }, function() {