aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/BaseWindow.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 09:59:41 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 09:59:41 +1300
commit6cc21719821eae314238d1fa17de17c9e095de47 (patch)
tree7ad5826ca0b8610f7e1296c197723af64aee6a12 /web/app/view/BaseWindow.js
parent0ea22d28252eeee1f12e38914855b34004042fcd (diff)
downloadtrackermap-web-6cc21719821eae314238d1fa17de17c9e095de47.tar.gz
trackermap-web-6cc21719821eae314238d1fa17de17c9e095de47.tar.bz2
trackermap-web-6cc21719821eae314238d1fa17de17c9e095de47.zip
Small improvements to web app
Diffstat (limited to 'web/app/view/BaseWindow.js')
-rw-r--r--web/app/view/BaseWindow.js2
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';
}