[PE] fix fullscreen on mobile device

This commit is contained in:
maxkadushkin
2024-05-16 10:38:16 +03:00
parent a3aa30df8f
commit 8eebe377d6

View File

@ -278,7 +278,7 @@ define([
};
if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter && !!document.fullscreenEnabled) {
Common.NotificationCenter.on('window:resize', _onWindowResize);
!fromApiEvent && me.fullScreen(document.documentElement);
!fromApiEvent && me.fullScreen(document.getElementById("presentation-preview"));
setTimeout(function(){
_onWindowResize();
}, 100);