diff options
Diffstat (limited to 'web/app/view/BaseWindow.js')
-rw-r--r-- | web/app/view/BaseWindow.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/BaseWindow.js b/web/app/view/BaseWindow.js index 689f2057..cb4879fc 100644 --- a/web/app/view/BaseWindow.js +++ b/web/app/view/BaseWindow.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.BaseWindow', { modal: true, initComponent: function () { - if (screen.width < Traccar.Style.windowWidth || screen.height < Traccar.Style.windowHeight) { + if (window.innerWidth < Traccar.Style.windowWidth || window.innerHeight < Traccar.Style.windowHeight) { this.maximized = true; this.style = 'border-width: 0'; } |