aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 00:20:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 00:20:26 +1300
commita6dc2ad67d4c799e024d25bbc69fddfe9d84a07f (patch)
treeab1b2910d2a564a2015f8cc3664de6dc843a1f78
parent166237d0c15ea228105afa65958d8a2889aab05b (diff)
downloadtrackermap-web-a6dc2ad67d4c799e024d25bbc69fddfe9d84a07f.tar.gz
trackermap-web-a6dc2ad67d4c799e024d25bbc69fddfe9d84a07f.tar.bz2
trackermap-web-a6dc2ad67d4c799e024d25bbc69fddfe9d84a07f.zip
Make dialogs scrollable if too big
-rw-r--r--web/app/Style.js2
-rw-r--r--web/app/view/BaseDialog.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/web/app/Style.js b/web/app/Style.js
index a215136c..b4201bbd 100644
--- a/web/app/Style.js
+++ b/web/app/Style.js
@@ -18,7 +18,7 @@
Ext.define('Traccar.Style', {
singleton: true,
- panelPadding: 10,
+ normalPadding: 10,
windowWidth: 640,
windowHeight: 480,
diff --git a/web/app/view/BaseDialog.js b/web/app/view/BaseDialog.js
index 05ffbbee..8d832245 100644
--- a/web/app/view/BaseDialog.js
+++ b/web/app/view/BaseDialog.js
@@ -18,7 +18,9 @@
Ext.define('Traccar.view.BaseDialog', {
extend: 'Ext.window.Window',
- bodyPadding: Traccar.Style.panelPadding,
+ bodyPadding: Traccar.Style.normalPadding,
resizable: false,
- modal: true
+ modal: true,
+ maxHeight: screen.height ? screen.height - Traccar.Style.normalPadding * 2 : null,
+ autoScroll: true
});