From 495b4a1f611ca12cc9d98da9030363142545ed73 Mon Sep 17 00:00:00 2001
From: Andre Hanke <andre.holger.hanke@mni.thm.de>
Date: Sun, 29 Sep 2019 17:55:00 +0200
Subject: [PATCH] added fullscreen to toggle button

---
 src/app/models/rescale.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/app/models/rescale.ts b/src/app/models/rescale.ts
index 2f91cf902..fdcd5e14c 100644
--- a/src/app/models/rescale.ts
+++ b/src/app/models/rescale.ts
@@ -70,12 +70,14 @@ export class Rescale {
     switch (this.state) {
       case 0:
         this.reset();
+        document.exitFullscreen();
         break;
       case 1:
         this.activate();
         break;
       case 2:
         this.activateFull();
+        document.body.requestFullscreen();
         break;
       default: break;
     }
-- 
GitLab