aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-06 09:24:13 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-06 09:24:13 +1300
commit939a75a9378328bd6acae260e745d44f031d5ff0 (patch)
treedc676bb5be82c700bad6d10a66659a737e09856f /web/app
parent6cc21719821eae314238d1fa17de17c9e095de47 (diff)
downloadtrackermap-web-939a75a9378328bd6acae260e745d44f031d5ff0.tar.gz
trackermap-web-939a75a9378328bd6acae260e745d44f031d5ff0.tar.bz2
trackermap-web-939a75a9378328bd6acae260e745d44f031d5ff0.zip
Fix the problem with dialog height
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/BaseDialog.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/web/app/view/BaseDialog.js b/web/app/view/BaseDialog.js
index 273b620d..75263485 100644
--- a/web/app/view/BaseDialog.js
+++ b/web/app/view/BaseDialog.js
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,6 +21,12 @@ Ext.define('Traccar.view.BaseDialog', {
bodyPadding: Traccar.Style.normalPadding,
resizable: false,
modal: true,
- maxHeight: window.innerHeight ? window.innerHeight - Traccar.Style.normalPadding * 2 : null,
- autoScroll: true
+ autoScroll: true,
+
+ initComponent: function () {
+ if (window.innerHeight) {
+ this.maxHeight = window.innerHeight - Traccar.Style.normalPadding * 2;
+ }
+ this.callParent();
+ }
});