aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 13:20:42 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-05 13:20:42 +0200
commite210701bcfc083fecea2a9fef6458afb6f81d0d8 (patch)
treee32343655a2248ab26ce110dd9db2e8be97ad628 /src/stores/AppStore.js
parentfix(Windows): Fix app to be cropped at the bottom on Windows (diff)
downloadferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.tar.gz
ferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.tar.zst
ferdium-app-e210701bcfc083fecea2a9fef6458afb6f81d0d8.zip
fix(Windows): Fix app size in fullscreen
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 6054e6721..315235ba4 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -94,6 +94,7 @@ export default class AppStore extends Store {
94 this._offlineCheck.bind(this), 94 this._offlineCheck.bind(this),
95 this._setLocale.bind(this), 95 this._setLocale.bind(this),
96 this._muteAppHandler.bind(this), 96 this._muteAppHandler.bind(this),
97 this._handleFullScreen.bind(this),
97 ]); 98 ]);
98 } 99 }
99 100
@@ -379,6 +380,16 @@ export default class AppStore extends Store {
379 } 380 }
380 } 381 }
381 382
383 _handleFullScreen() {
384 const body = document.querySelector('body');
385
386 if (this.isFullScreen) {
387 body.classList.add('isFullScreen');
388 } else {
389 body.classList.remove('isFullScreen');
390 }
391 }
392
382 // Helpers 393 // Helpers
383 _appStartsCounter() { 394 _appStartsCounter() {
384 this.actions.settings.update({ 395 this.actions.settings.update({