Browse Source

Fix audiovideo fullscreen hiding content when in presentation and youtubevieo mode (FS#3072).

pull/247/head
Evan Theurer 10 years ago
parent
commit
f9d70d3dc6
  1. 7
      static/js/directives/audiovideo.js

7
static/js/directives/audiovideo.js

@ -244,8 +244,13 @@ define(['jquery', 'underscore', 'text!partials/audiovideo.html', 'text!partials/
$scope.toggleFullscreen = function() { $scope.toggleFullscreen = function() {
//console.log("Toggle full screen", BigScreen.enabled, $scope.isActive, $scope.hasUsermedia); //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)) { if (BigScreen.enabled && ($scope.isActive || $scope.hasUsermedia)) {
BigScreen.toggle($scope.layoutparent[0], function() { BigScreen.toggle(target, function() {
// onEnter // onEnter
$scope.layoutparent.addClass("fullscreen"); $scope.layoutparent.addClass("fullscreen");
}, function() { }, function() {

Loading…
Cancel
Save