From f9d70d3dc6d0e87408d723896f90303f60cf3adc Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Tue, 5 Jan 2016 12:24:19 +0100 Subject: [PATCH 1/3] 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() { From 6c20a5fa0f33d57fe8595e9a1303b5398c6b1b6b Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Tue, 5 Jan 2016 12:37:35 +0100 Subject: [PATCH 2/3] Force left due to fullscreen issues. --- src/styles/global/_base.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/global/_base.scss b/src/styles/global/_base.scss index a997284a..ff9e61cf 100644 --- a/src/styles/global/_base.scss +++ b/src/styles/global/_base.scss @@ -42,6 +42,7 @@ body { min-width: $buddylist-width; position: absolute; width: 100%; + left: 0; } } From c75d55ddda70fe06965c725d77cf677b7e6c2558 Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Tue, 5 Jan 2016 12:39:48 +0100 Subject: [PATCH 3/3] Keep video from being cut off when in fullscreen in presentation and youtubevideo layouts. --- src/styles/components/_audiovideo.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/styles/components/_audiovideo.scss b/src/styles/components/_audiovideo.scss index 6b218b01..32f5c2ce 100644 --- a/src/styles/components/_audiovideo.scss +++ b/src/styles/components/_audiovideo.scss @@ -71,6 +71,14 @@ } } +.mainPresentation #audiovideo.fullscreen { + top: 51px !important; +} + +.mainYoutubevideo #audiovideo.fullscreen { + top: 51px !important; +} + .audiovideo { bottom: 0; left: 0;