From 11d39cc414083df7702dfef26e7154c81a5cca93 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 20 Oct 2021 22:01:00 +0300 Subject: [PATCH] [PE] Don't open slideshow in fullscreen on sdk event --- apps/presentationeditor/main/app/controller/Viewport.js | 4 ++-- apps/presentationeditor/main/app/view/DocumentHolder.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/Viewport.js b/apps/presentationeditor/main/app/controller/Viewport.js index 9cb0b0b2f..3107ed82a 100644 --- a/apps/presentationeditor/main/app/controller/Viewport.js +++ b/apps/presentationeditor/main/app/controller/Viewport.js @@ -375,7 +375,7 @@ define([ Common.NotificationCenter.trigger('window:resize'); }, - onPreviewStart: function(slidenum, presenter) { + onPreviewStart: function(slidenum, presenter, fromApiEvent) { this.previewPanel = this.previewPanel || this.getView('DocumentPreview'); var me = this, isResized = false; @@ -406,7 +406,7 @@ define([ }; if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter) { Common.NotificationCenter.on('window:resize', _onWindowResize); - me.fullScreen(document.documentElement); + !fromApiEvent && me.fullScreen(document.documentElement); setTimeout(function(){ _onWindowResize(); }, 100); diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 2f15d2be8..3b7142a96 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -1483,7 +1483,7 @@ define([ var onApiStartDemonstration = function() { if (me.slidesCount>0) { - Common.NotificationCenter.trigger('preview:start', 0); + Common.NotificationCenter.trigger('preview:start', 0, null, true); } };