From 6574070e87cc6d5dd78cea32fc13f81306757cee Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 12 Aug 2023 21:09:54 +0200 Subject: [PATCH] Close #1038 fullscreen the root element --- packages/core/src/Viewer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/Viewer.ts b/packages/core/src/Viewer.ts index b4cbe11c6..28ced29b3 100644 --- a/packages/core/src/Viewer.ts +++ b/packages/core/src/Viewer.ts @@ -264,7 +264,7 @@ export class Viewer extends TypedEventTarget { * Checks if the viewer is in fullscreen */ isFullscreenEnabled(): boolean { - return isFullscreenEnabled(this.container); + return isFullscreenEnabled(this.parent); } /** @@ -740,7 +740,7 @@ export class Viewer extends TypedEventTarget { */ enterFullscreen() { if (!this.isFullscreenEnabled()) { - requestFullscreen(this.container); + requestFullscreen(this.parent); } }