aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/BaseWindow.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/BaseWindow.js')
-rw-r--r--web/app/view/BaseWindow.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/web/app/view/BaseWindow.js b/web/app/view/BaseWindow.js
index ede69b98..689f2057 100644
--- a/web/app/view/BaseWindow.js
+++ b/web/app/view/BaseWindow.js
@@ -21,5 +21,13 @@ Ext.define('Traccar.view.BaseWindow', {
width: Traccar.Style.windowWidth,
height: Traccar.Style.windowHeight,
layout: 'fit',
- modal: true
+ modal: true,
+
+ initComponent: function () {
+ if (screen.width < Traccar.Style.windowWidth || screen.height < Traccar.Style.windowHeight) {
+ this.maximized = true;
+ this.style = 'border-width: 0';
+ }
+ this.callParent();
+ }
});